You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.04.
Struct slamcore::host_clock
-
struct host_clock
Defining our own host_clock lets us pretend to have nanosecond resolution everywhere.
Public Types
-
using rep = duration::rep
-
using period = duration::period
-
using time_point = std::chrono::time_point<host_clock, duration>
Public Static Functions
-
static inline time_point now() noexcept
-
static inline time_point from_time_t(std::time_t t) noexcept
-
static inline std::time_t to_time_t(const time_point &t) noexcept
Public Static Attributes
-
static constexpr bool is_steady = std::chrono::system_clock::is_steady
-
using rep = duration::rep