|
auto | now () noexcept -> time_t |
| Returns the current time.
|
|
void | start () noexcept |
| Starts the timer.
|
|
auto | is_running () const noexcept -> bool |
|
void | pause () noexcept |
| Pauses the timer on the clock.
|
|
void | resume () noexcept |
| Continues the timer after pausing.
|
|
auto | running_time () noexcept -> time_t |
| Returns the total accumulated time on the clock.
|
|
auto | stop () noexcept -> time_t |
| Resets the clock, Returns the time since it was started.
|
|
template<typename time_t = seconds, typename clock_t = std::chrono::steady_clock>
class VIPRA::Util::Clock< time_t, clock_t >
Clock to time execution time.
- Template Parameters
-
time_t | : time scale |
clock_t | : type of clock to use |