Honeycomb  0.1
Component-Model Framework
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
honey::SystemClock Struct Reference

System-wide real-time clock. Low-resolution time since Unix Epoch, can possibly go backwards if changed by OS. More...

#include <Clock.h>

Inheritance diagram for honey::SystemClock:
Inheritance graph
[legend]
Collaboration diagram for honey::SystemClock:
Collaboration graph
[legend]

Public Types

typedef Super::TimePoint TimePoint
 
typedef TimePoint::Duration Duration
 
typedef Duration::Rep Rep
 
typedef Duration::Period Period
 

Static Public Member Functions

static TimePoint now ()
 Get current time. More...
 
static time_t toStdTime (const TimePoint &t)
 Convert to standard C time. More...
 
static TimePoint fromStdTime (const time_t &t)
 Convert from standard C time. More...
 

Static Public Attributes

static const bool isMonotonic = false
 

Detailed Description

System-wide real-time clock. Low-resolution time since Unix Epoch, can possibly go backwards if changed by OS.

Member Typedef Documentation

typedef Super::TimePoint honey::SystemClock::TimePoint

Member Function Documentation

static TimePoint honey::SystemClock::fromStdTime ( const time_t &  t)
inlinestatic

Convert from standard C time.

static TimePoint honey::SystemClock::now ( )
inlinestatic

Get current time.

static time_t honey::SystemClock::toStdTime ( const TimePoint t)
inlinestatic

Convert to standard C time.

Member Data Documentation

const bool honey::SystemClock::isMonotonic = false
static

The documentation for this struct was generated from the following file: