|
stdex
Additional custom or not Standard C++ covered algorithms
|
Measures time between initialization and going out of scope. More...
#include <stdex/debug.hpp>
Public Member Functions | |
| benchmark (const char *task_name) | |
| Starts the measurement. | |
| ~benchmark () | |
| Stops the measurement and outputs the result to the diagnostic console. | |
Protected Attributes | |
| const char * | m_task_name |
| std::chrono::time_point< std::chrono::high_resolution_clock > | m_start |
Measures time between initialization and going out of scope.
|
inline |
Starts the measurement.
| [in] | task_name | Name of the task. The string must remain resident for the lifetime of this object |