Go to the documentation of this file.
23 using period = std::ratio<1, 10000000>;
24 using duration = std::chrono::duration<rep, period>;
27 static constexpr
bool is_steady = std::chrono::system_clock::is_steady;
std::chrono::duration< rep, period > duration
static time_point now() noexcept
Returns the current time using the currently selected Clock source.
static uint64_t getMonotonicToRealtimeOffset()
Returns the number of nanoseconds that are added to the output of the POSIX CLOCK_MONOTONIC to make t...
static int64_t resetMonotonicToRealTimeEpoch() noexcept
Monotonic clock might drift over time with respect to Realtime.
@ Realtime
Realtime: POSIX CLOCK_REALTIME.
static time_point fromDouble(const double t) noexcept
Create a timestamp from its double representation.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
static void setActiveClock(const Source s)
Changes the selected clock to get time from when calling now().
static constexpr bool is_steady
static double toDouble(const time_point t) noexcept
Converts a timestamp to a UNIX time_t-like number, with fractional part.
Clock that is compatible with MRPT TTimeStamp representation.
std::ratio< 1, 10000000 > period
static Source getActiveClock()
Returns the currently selected clock.
std::chrono::time_point< Clock > time_point
@ Monotonic
Monotonic: POSIX CLOCK_MONOTONIC.
Source
Options for setting the source of all timestamps across MRPT: setActiveClock(), now()
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 23:51:15 UTC 2020 | |