A helper class to measure execution time for benchmarking purposes.
More...
#include <ThreadPool.hpp>
A helper class to measure execution time for benchmarking purposes.
◆ ms()
i64 mltk::timer::ms |
( |
| ) |
const |
|
inline |
Get the number of milliseconds that have elapsed between start() and stop().
- Returns
- The number of milliseconds.
◆ start()
void mltk::timer::start |
( |
| ) |
|
|
inline |
Start (or restart) measuring time.
◆ stop()
void mltk::timer::stop |
( |
| ) |
|
|
inline |
Stop measuring time and store the elapsed time since start().
The documentation for this class was generated from the following file: