Struct slamcore::host_clock

struct host_clock

Defining our own host_clock lets us pretend to have nanosecond resolution everywhere.

Public Types

using duration = std::chrono::duration<std::int64_t, std::nano>
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