#include <time_point.h>
Definition at line 22 of file time_point.h.
◆ ClockSource
◆ TimePoint()
constexpr fml::TimePoint::TimePoint |
( |
| ) |
|
|
constexprdefault |
◆ CurrentWallTime()
TimePoint fml::TimePoint::CurrentWallTime |
( |
| ) |
|
|
static |
Definition at line 57 of file time_point.cc.
57 {
58 const int64_t nanos =
NanosSinceEpoch(std::chrono::system_clock::now());
60}
constexpr TimePoint()=default
static int64_t NanosSinceEpoch(std::chrono::time_point< Clock, Duration > time_point)
◆ FromEpochDelta()
◆ FromTicks()
static constexpr TimePoint fml::TimePoint::FromTicks |
( |
int64_t |
ticks | ) |
|
|
inlinestaticconstexpr |
◆ Max()
static constexpr TimePoint fml::TimePoint::Max |
( |
| ) |
|
|
inlinestaticconstexpr |
Definition at line 39 of file time_point.h.
39 {
41 }
static float max(float r, float g, float b)
◆ Min()
static constexpr TimePoint fml::TimePoint::Min |
( |
| ) |
|
|
inlinestaticconstexpr |
Definition at line 35 of file time_point.h.
35 {
37 }
static float min(float r, float g, float b)
◆ Now()
Definition at line 49 of file time_point.cc.
49 {
50 if (gSteadyClockSource) {
51 return gSteadyClockSource.load()();
52 }
53 const int64_t nanos =
NanosSinceEpoch(std::chrono::steady_clock::now());
55}
◆ operator!=()
bool fml::TimePoint::operator!= |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 67 of file time_point.h.
67{ return ticks_ != other.ticks_; }
◆ operator+()
◆ operator-() [1/2]
◆ operator-() [2/2]
Definition at line 55 of file time_point.h.
55 {
57 }
static constexpr TimeDelta FromNanoseconds(int64_t nanos)
◆ operator<()
bool fml::TimePoint::operator< |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 68 of file time_point.h.
68{ return ticks_ < other.ticks_; }
◆ operator<=()
bool fml::TimePoint::operator<= |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 69 of file time_point.h.
69{ return ticks_ <= other.ticks_; }
◆ operator==()
bool fml::TimePoint::operator== |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 66 of file time_point.h.
66{ return ticks_ == other.ticks_; }
◆ operator>()
bool fml::TimePoint::operator> |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 70 of file time_point.h.
70{ return ticks_ > other.ticks_; }
◆ operator>=()
bool fml::TimePoint::operator>= |
( |
TimePoint |
other | ) |
const |
|
inline |
Definition at line 71 of file time_point.h.
71{ return ticks_ >= other.ticks_; }
◆ SetClockSource()
void fml::TimePoint::SetClockSource |
( |
ClockSource |
source | ) |
|
|
static |
◆ ToEpochDelta()
TimeDelta fml::TimePoint::ToEpochDelta |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: