11 struct SystemClock :
private platform::SystemClock<SystemClock>
14 typedef platform::SystemClock<SystemClock> Super;
24 static TimePoint
now() {
return Super::now(); }
27 static time_t
toStdTime(
const TimePoint& t) {
return time_t(Seconds(t.time()).count()); }
35 struct MonoClock :
private platform::MonoClock<MonoClock>
38 typedef platform::MonoClock<MonoClock> Super;
48 static TimePoint
now() {
return Super::now(); }
Rep_ Rep
Definition: Duration.h:29
Period_ Period
Definition: Duration.h:30
static TimePoint now()
Get current time.
Definition: Clock.h:48
TimePoint::Duration Duration
Definition: Clock.h:17
System-wide monotonic clock. High-resolution and steady-rate time since application start...
Definition: Clock.h:35
Duration::Rep Rep
Definition: Clock.h:18
System-wide real-time clock. Low-resolution time since Unix Epoch, can possibly go backwards if chang...
Definition: Clock.h:11
Duration::Rep Rep
Definition: Clock.h:42
static time_t toStdTime(const TimePoint &t)
Convert to standard C time.
Definition: Clock.h:27
Super::TimePoint TimePoint
Definition: Clock.h:40
Duration::Period Period
Definition: Clock.h:19
static TimePoint fromStdTime(const time_t &t)
Convert from standard C time.
Definition: Clock.h:30
Duration::Period Period
Definition: Clock.h:43
static TimePoint now()
Get current time.
Definition: Clock.h:24
Dur Duration
Definition: TimePoint.h:16
static const bool isMonotonic
Definition: Clock.h:21
static const bool isMonotonic
Definition: Clock.h:45
Super::TimePoint TimePoint
Definition: Clock.h:16
TimePoint::Duration Duration
Definition: Clock.h:41
Global Honeycomb namespace.