#include <rll/elapsed_timer.h>
template <typename Clock = std:: chrono:: steady_clock>
elapsed_timer class
Public types
- using duration = typename Clock::duration
- using time_point = typename Clock::time_point
Constructors, destructors, conversion operators
- elapsed_timer()
-
elapsed_timer(deferred_
t const& deferred_tag) explicit
Public functions
-
auto duration_to(elapsed_
timer const& other) const → duration - auto elapsed() const → duration
- auto has_expired(duration const& duration) const → bool
- auto is_deferred() const → bool
-
auto operator!=(elapsed_
timer const& other) const → bool -
auto operator<(elapsed_
timer const& other) const → bool -
auto operator<=(elapsed_
timer const& other) const → bool -
auto operator==(elapsed_
timer const& other) const → bool -
auto operator>(elapsed_
timer const& other) const → bool -
auto operator>=(elapsed_
timer const& other) const → bool - auto restart() → duration
- void start()
-
auto start_time() const → time_
point