ERY.AgateLib.Timing.StopWatch Class Reference

Class which represents a StopWatch. A StopWatch can be paused and reset independently of other StopWatches. More...

List of all members.

Public Member Functions

 StopWatch ()
 Constructs a timer object, and immediately begins keeping track of time.
 StopWatch (bool autostart)
 Constructs a timer object. If the timer starts paused, a call to Resume() must be made for it to begin keeping track of time.
void Dispose ()
 Destroys this timer.
void Reset ()
 Resets the timer to zero.
void Pause ()
 Increments the pause counter. If the counter is greater than zero, the timer won't advance.
void Resume ()
 Decrements the pause counter. If the pause counter is zero the timer will begin advancing.
void ForceResume ()
 Sets the pause counter to zero, causing the timer to begin advancing regardless of how many calls to Pause() are made.

Properties

double TotalSeconds [get]
 Returns the number of seconds since the timer started.
double TotalMilliseconds [get]
 Returns the number of ticks (milliseconds) since the timer started.
bool IsPaused [get]
 Gets whether or not this StopWatch is paused.


Detailed Description

Class which represents a StopWatch. A StopWatch can be paused and reset independently of other StopWatches.


Constructor & Destructor Documentation

ERY.AgateLib.Timing.StopWatch.StopWatch (  ) 

Constructs a timer object, and immediately begins keeping track of time.

ERY.AgateLib.Timing.StopWatch.StopWatch ( bool  autostart  ) 

Constructs a timer object. If the timer starts paused, a call to Resume() must be made for it to begin keeping track of time.

Parameters:
autostart Pass true to immediately begin keeping track of time. False to pause the timer initially.


Member Function Documentation

void ERY.AgateLib.Timing.StopWatch.Dispose (  ) 

Destroys this timer.

void ERY.AgateLib.Timing.StopWatch.Reset (  ) 

Resets the timer to zero.

void ERY.AgateLib.Timing.StopWatch.Pause (  ) 

Increments the pause counter. If the counter is greater than zero, the timer won't advance.

void ERY.AgateLib.Timing.StopWatch.Resume (  ) 

Decrements the pause counter. If the pause counter is zero the timer will begin advancing.

void ERY.AgateLib.Timing.StopWatch.ForceResume (  ) 

Sets the pause counter to zero, causing the timer to begin advancing regardless of how many calls to Pause() are made.


Property Documentation

double ERY.AgateLib.Timing.StopWatch.TotalSeconds [get]

Returns the number of seconds since the timer started.

double ERY.AgateLib.Timing.StopWatch.TotalMilliseconds [get]

Returns the number of ticks (milliseconds) since the timer started.

bool ERY.AgateLib.Timing.StopWatch.IsPaused [get]

Gets whether or not this StopWatch is paused.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo