libdballe 9.6
Public Member Functions | List of all members
dballe::benchmark::Task Struct Referenceabstract

One task to be measured. More...

#include <benchmark.h>

Public Member Functions

 Task (const Task &)=delete
 
 Task (Task &&)=delete
 
Taskoperator= (const Task &)=delete
 
Taskoperator= (Task &&)=delete
 
virtual const char * name () const =0
 
virtual void setup ()
 Set up the environment for running run_once()
 
virtual void run_once ()=0
 Run the task once.
 
virtual void teardown ()
 Clean up after the task has been measured.
 

Detailed Description

One task to be measured.

Member Function Documentation

◆ run_once()

virtual void dballe::benchmark::Task::run_once ( )
pure virtual

Run the task once.

It can be called multiple times bewteen setup and teardown in order to perform repeated measurements.


The documentation for this struct was generated from the following file: