Syntalos::symaster_clock
Syntalos::symaster_clock
Syntalos Master Clock. More…
#include <syclock.h>
Public Types
Name | |
---|---|
typedef std::chrono::nanoseconds | duration |
typedef duration::rep | rep |
typedef duration::period | period |
typedef std::chrono::time_point< symaster_clock, duration > | time_point |
Public Functions
Name | |
---|---|
time_point | now() |
Public Attributes
Name | |
---|---|
constexpr bool | is_steady |
Detailed Description
struct Syntalos::symaster_clock;
Syntalos Master Clock.
The master clock that is used as reference for all other connected and device-specific clocks. It is always guaranteed to use monotonic time, only increasing at a uniform rate, and should have nanosecond accuracy.
This clock exists so we can be independent of the C++ standard library and exactly control and adjust our clock, as well as experiment with new types of clocks.
Public Types Documentation
typedef duration
typedef std::chrono::nanoseconds Syntalos::symaster_clock::duration;
typedef rep
typedef duration::rep Syntalos::symaster_clock::rep;
typedef period
typedef duration::period Syntalos::symaster_clock::period;
typedef time_point
typedef std::chrono::time_point<symaster_clock, duration> Syntalos::symaster_clock::time_point;
Public Functions Documentation
function now
static time_point now()
Public Attributes Documentation
variable is_steady
static constexpr bool is_steady = true;
Updated on 2024-11-06 at 17:10:29 +0000