Public Member Functions | Static Public Member Functions

Time Class Reference

#include <Time.hpp>

List of all members.

Public Member Functions

 Time ()
 Time (int64_t sec, uint32_t nanosec=0)
int64_t sec () const
void sec (int64_t s)
uint32_t nanosec () const
void nanosec (uint32_t ns)
int compare (const Time &that)
bool operator> (const Time &that)
bool operator>= (const Time &that)
bool operator== (const Time &that)
bool operator<= (const Time &that)
bool operator< (const Time &that)
Timeoperator+= (const Duration &a_ti)
Timeoperator-= (const Duration &a_ti)
void set_in_milliseconds (int64_t millisec)
int64_t get_in_milliseconds () const
void set_in_microseconds (int64_t microsec)
int64_t get_in_microseconds () const
void set_in_seconds (double seconds)
double get_in_seconds () const

Static Public Member Functions

static const Time invalid ()
static const Time from_microseconds (int64_t microseconds)
static const Time from_milliseconds (int64_t milliseconds)
static const Time from_seconds (double seconds)

Detailed Description

Definition at line 27 of file Time.hpp.


Constructor & Destructor Documentation

Time (  ) 
Time ( int64_t  sec,
uint32_t  nanosec = 0 
) [explicit]

Member Function Documentation

int compare ( const Time that  ) 
static const Time from_microseconds ( int64_t  microseconds  )  [static]
static const Time from_milliseconds ( int64_t  milliseconds  )  [static]
static const Time from_seconds ( double  seconds  )  [static]
int64_t get_in_microseconds (  )  const
int64_t get_in_milliseconds (  )  const
double get_in_seconds (  )  const
static const Time invalid (  )  [static]
void nanosec ( uint32_t  ns  ) 
uint32_t nanosec (  )  const
Time& operator+= ( const Duration a_ti  ) 
Time& operator-= ( const Duration a_ti  ) 
bool operator< ( const Time that  ) 
bool operator<= ( const Time that  ) 
bool operator== ( const Time that  ) 
bool operator> ( const Time that  ) 
bool operator>= ( const Time that  ) 
void sec ( int64_t  s  ) 
int64_t sec (  )  const
void set_in_microseconds ( int64_t  microsec  ) 
void set_in_milliseconds ( int64_t  millisec  ) 
void set_in_seconds ( double  seconds  ) 

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