Time.h

Classes

Time -- (full description)

class Time

Interface

Public Members
static Time curTime ()
Time ()
Time (const Time& t)
long sec () const
long msec () const
int operator== (const Time& t) const
int operator!= (const Time& t) const
Time& operator= (const Time& t)
Time& operator+= (long t)
Time operator+ (long t) const
int operator< (const Time& t) const
int operator> (const Time& t) const

Description

Class: Time Time with granularity up to the millisecond. All operations are with milliseconds.

Member Description

static Time curTime ()

curTime: return the current time value

Time ()

Time: Constructor

Time (const Time& t)

Time: Copy constructor

long sec () const

secs: return the seconds

long msec () const

millisecs: return the milliseconds

int operator== (const Time& t) const

operator==: Equality operator

int operator!= (const Time& t) const

operator!=: Inequality operator

Time& operator= (const Time& t)

operator=: Assignment operator

Time& operator+= (long t)

operator +=: New increment operator

Time operator+ (long t) const

operator+: Addition operator

int operator< (const Time& t) const

operator<: Less than operator

int operator> (const Time& t) const

operator>: Greater than operator