Sprites for Processing  V2.1
 All Classes Functions Variables
sprites.utils.StopWatch Class Reference

Public Member Functions

 StopWatch ()
 
void reset ()
 
double getRunTime ()
 
double getElapsedTime ()
 

Detailed Description

Determines the runtime and elapsed time in seconds.

Author
Peter Lager

Constructor & Destructor Documentation

sprites.utils.StopWatch.StopWatch ( )

Create a stop watch and initialise it to the current time.

Member Function Documentation

double sprites.utils.StopWatch.getElapsedTime ( )

Get the elapsed time since this method was called.

Returns
elapsed time in seconds.
double sprites.utils.StopWatch.getRunTime ( )

Get the time since the stop watch was created or last reset.

Returns
run time in seconds
void sprites.utils.StopWatch.reset ( )

Initialise the stop-watch to the current time.


The documentation for this class was generated from the following file: