TC::Time Class Reference
[Base Classes and Functions]

Class holding information about absolute time in seconds + nano seconds. More...

#include <TCTime.h>

Collaboration diagram for TC::Time:

Collaboration graph
[legend]

List of all members.

Public Member Functions

uint64 Seconds () const
 Get the seconds of the time object.
uint64 NanoSeconds () const
 Get the nano seconds of the time object.
uint64 ToMilliSeconds () const
 Get Total time in milli seconds.
uint64 ToMicroSeconds () const
 Get Total time in micro seconds.
uint64 ToNanoSeconds () const
 Get Total time in nano seconds.
Timeoperator+= (const Time &time_to_add)
Timeoperator-= (const Time &time_to_add)
bool operator== (const Time &a)
bool operator!= (const Time &a)

Static Public Member Functions

static Time FromSeconds (uint64 seconds)
 Create a Time object with specified seconds.
static Time FromMilliSeconds (uint64 milli_seconds)
 Create a Time object with specified milli seconds.
static Time FromMicroSeconds (uint64 micro_seconds)
 Create a Time object with specified micro seconds.
static Time FromNanoSeconds (uint64 nanos_seconds)
 Create a Time object with specified nano seconds.
static Time Now ()
 Create a Time object with current time values.
static Time Since (const Time &start_time)
 Create a Time object holding the time ellapsed since specified time.

Private Attributes

uint64 m_secs
uint64 m_nsecs


Detailed Description

Class holding information about absolute time in seconds + nano seconds.

Definition at line 58 of file TCTime.h.


Member Function Documentation

static Time TC::Time::FromSeconds ( uint64  seconds  )  [static]

Create a Time object with specified seconds.


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

Copyright (c) Thomas Goessler 2003 - 2008