template<typename Time = std::chrono::microseconds, typename Clock = std::chrono::high_resolution_clock>
class mazes::progress< Time, Clock >
Simple clock for elapsed events.
This class is used to track the elapsed time between two events
Thread safe with mutexes
template<typename Time = std::chrono::microseconds, typename Clock = std::chrono::high_resolution_clock>
template<typename F , typename... Args, typename Duration = Time>
| static Duration mazes::progress< Time, Clock >::duration |
( |
F && | f, |
|
|
Args &&... | args ) |
|
inlinestatic |
Measures the duration of a callable object.
- Template Parameters
-
| F | The type of the callable object |
| ...Args | The types of the arguments to the callable object |
| Duration | The type of the duration to return |
- Parameters
-
| f | The callable object |
| args | |
| ...args | The arguments to pass to the callable object |
- Returns
- The duration of the callable object