Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCTimeDelta Class Reference

Utility class representing time deltas (differences between two times). More...

#include <mcllib/MCTime.h>

List of all members.

Public Member Functions

mctime_t getTime () const
 Get the time from a time delta.
 MCTimeDelta (const char *deltaStr)
 Construct from a delta specification string.
 MCTimeDelta (mcinterval_t t)
 Construct a time delta from an interval.
 MCTimeDelta (mctime_t t)
 Construct a time delta from a time.
 operator mcinterval_t () const
 Get an interval from a time delta.
MCString toString () const
 Get as a delta string in the default format.


Detailed Description

Utility class representing time deltas (differences between two times).


Constructor & Destructor Documentation

MCTimeDelta mctime_t  t  ) 
 

Construct a time delta from a time.

Parameters:
t time delta in microseconds

MCTimeDelta mcinterval_t  t  ) 
 

Construct a time delta from an interval.

Parameters:
t time delta in milliseconds

MCTimeDelta const char *  deltaStr  )  [explicit]
 

Construct from a delta specification string.

This method is not implemented.

Todo:
implement time delta specification strings


Member Function Documentation

mctime_t getTime  )  const
 

Get the time from a time delta.

Returns:
the time value for the time delta

operator mcinterval_t  )  const
 

Get an interval from a time delta.

Returns:
an interval for the time delta. The value may be truncated due to the limited size of the return data type

MCString toString  )  const
 

Get as a delta string in the default format.

This method is not implemented.

Todo:
implement time delta toString


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1