Go to the documentation of this file.
25 #ifndef GOBY_TIME_STEADY_CLOCK_H
26 #define GOBY_TIME_STEADY_CLOCK_H
43 typedef duration::rep
rep;
51 using namespace std::chrono;
52 auto now = steady_clock::now();
55 return time_point(duration_cast<duration>(
now.time_since_epoch()));
58 duration_cast<duration>(
now.time_since_epoch()));
std::chrono::microseconds duration
Duration type.
The global namespace for the Goby project.
static time_point now() noexcept
Returns the current steady time unless SimulatorSettings::using_sim_time == true in which case a simu...
std::chrono::time_point< SteadyClock > time_point
static const bool is_steady
static bool using_sim_time
Enables simulation time if true (if false, none of the remaining parameters are used)
static int warp_factor
Warp factor to speed up (or slow time) the time values returned by SteadyClock::now() and SystemClock...
unit< time_dimension, si::system > time
Essentially the same as std::chrono::steady_clock except the time returned by SteadyClock::now() can ...