Go to the documentation of this file.
24 #ifndef GOBY_TIME_SYSTEM_CLOCK_H
25 #define GOBY_TIME_SYSTEM_CLOCK_H
53 typedef duration::rep
rep;
65 using namespace std::chrono;
66 auto now = system_clock::now();
69 return time_point(duration_cast<duration>(
now.time_since_epoch()));
75 template <
typename TimeType>
static TimeType
now();
78 warp(
const std::chrono::system_clock::time_point& real_time);
80 static std::chrono::system_clock::time_point
static time_point now() noexcept
Returns the current system time unless SimulatorSettings::using_sim_time is set to true,...
Essentially the same as std::chrono::system_clock except the time returned by SystemClock::now() can ...
The global namespace for the Goby project.
static const bool is_steady
std::chrono::microseconds duration
Duration type.
static goby::time::SystemClock::time_point warp(const std::chrono::system_clock::time_point &real_time)
std::chrono::time_point< SystemClock > time_point
static bool using_sim_time
Enables simulation time if true (if false, none of the remaining parameters are used)
unit< time_dimension, si::system > time
static std::chrono::system_clock::time_point unwarp(const goby::time::SystemClock::time_point &sim_time)