|
libdballe
7.21
|
One task to be measured. More...
#include <benchmark.h>
Public Member Functions | |
| Task (const std::string &name) | |
| Task (const Task &)=delete | |
| Task (Task &&)=delete | |
| Task & | operator= (const Task &)=delete |
| Task & | operator= (Task &&)=delete |
| virtual void | setup () |
| Set up the environment for running run_once() | |
| virtual void | run_once ()=0 |
| Run the task once. More... | |
| virtual void | teardown () |
| Clean up after the task has been measured. | |
Public Attributes | |
| std::string | name |
One task to be measured.
|
pure virtual |
Run the task once.
It can be called multiple times bewteen setup and teardown in order to perform repeated measurements.
Referenced by setup().
1.8.13