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

Timer Class Reference

Abstract timer interface. More...

#include <System/timer.h>

List of all members.

Public Member Functions

 Timer (void)
 constructor
double Delta (void)
 Get time since last called. Returns the time in seconds since the last time this function was call.
void Pause (void)
 Pause the timer. When a timer is paused, all calls to Delta() return 0.
void Unpause (void)
 Unpause a timer.
void SetSpeed (double s)
 Adjust the timer speed.


Detailed Description

Abstract timer interface.


Member Function Documentation

void Timer::SetSpeed double  s  )  [inline]
 

Adjust the timer speed.

Parameters:
s 1 is normal speed, 0.5 is half as fast, etc

void Timer::Unpause void   )  [inline]
 

Unpause a timer.

Note:
After a timer is unpaused, the next call to Delta() will return the time since the last call to Delta(), not the time since the call to Unpause()


The documentation for this class was generated from the following files:
Generated on Fri Jan 12 14:15:02 2007 for Construct by  doxygen 1.4.3-20050530