Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members  

Time Class Reference

#include <Time.h>

List of all members.

Public Methods

 Time ()
 Time (const Time &t)
unsigned long milliseconds () const
unsigned long seconds () const
const Time & operator+= (unsigned long millis)
const Time & operator-= (unsigned long millis)
const Time & operator+= (const Time &t)
const Time & operator-= (const Time &t)


Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-05-30T10:54:39-0400>
Version:
2.2.0
The Time class provides access to time values relative to when the program was started. In otherwords, this class might be thought of as a timer that starts at 0 and counts upwards. This class offers millisecond resolution.


Constructor & Destructor Documentation

Time  
 

Create a Time object with the current time relative to the begining of the program.

Time const Time &    t [inline]
 

Create a Time object by copying another.

Parameters:
t  - Time object to copy.


Member Function Documentation

unsigned long milliseconds   const [inline]
 

Get the number of milliseconds in this Time object.

Returns :
unsigned long milliseconds value

const Time& operator+= const Time &    t [inline]
 

Add the value of another Time object to this one.

Parameters:
t  - Time object whose value should be added to this object
Returns :
const Time& this object

const Time& operator+= unsigned long    millis [inline]
 

Add some number of milliseconds to this Time object.

Parameters:
millis  - number of milliseconds to add to this Time object
Returns :
const Time& this object

const Time& operator-= const Time &    t [inline]
 

Subtract the value of another Time object from this one. This function has a floor of 0.

Parameters:
t  - Time object whose value should be substracted from this object
Returns :
const Time& this object

const Time& operator-= unsigned long    millis [inline]
 

Subtract some number of milliseconds to this Time object.

Parameters:
millis  - number of milliseconds to subtract from this Time object
Returns :
const Time& this object

unsigned long seconds   const [inline]
 

Get the number of seconds in this Time object.

Returns :
unsigned long seconds value


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:15 2002 for ZThread by doxygen1.2.17