timer Namespace Reference
Functions | |
| std::chrono::high_resolution_clock::time_point | now () |
| Get current time. More... | |
| float | elapsed (std::chrono::high_resolution_clock::time_point &tic, bool reset=false) |
| Get elapsed time in seconds. More... | |
| void | reset (std::chrono::high_resolution_clock::time_point &tic, float *cumul=nullptr) |
| Dump current time and reset it afterwards. More... | |
Function Documentation
◆ elapsed()
|
inline |
Get elapsed time in seconds.
- Parameters
-
[in] tic start time
◆ now()
|
inline |
Get current time.
◆ reset()
|
inline |
Dump current time and reset it afterwards.
- Parameters
-
[in] tic start time