aether::timer Namespace Reference

Typedefs

using time_type = std::chrono::time_point< std::chrono::steady_clock >
 
using duration_type = time_type::duration
 

Functions

time_type get ()
 
double diff (const time_type &stop_time, const time_type &start_time)
 
void sleep_until (const time_type &target_time)
 
time_type add (const time_type &start_time, const duration_type &duration)
 

Typedef Documentation

using aether::timer::duration_type = typedef time_type::duration
using aether::timer::time_type = typedef std::chrono::time_point<std::chrono::steady_clock>

Function Documentation

time_type aether::timer::add ( const time_type start_time,
const duration_type duration 
)
double aether::timer::diff ( const time_type stop_time,
const time_type start_time 
)
time_type aether::timer::get ( )
void aether::timer::sleep_until ( const time_type target_time)