oaTimer Class Reference


Public Methods

 oaTimer ()
void reset ()
oaFloat getElapsed ()
oaFloat getElapsed () const

Detailed Description

The oaTimer class is a utility class used to time how long a section of code takes to execute. Elapsed time is recorded since the construction of oaTimer or the last reset. The units for the elapsed time is seconds.


Constructor & Destructor Documentation

oaTimer::oaTimer  
 

This function constructs an oaTimer instance, initializing the counter with a snapshot of the clock in order to calculate elapsed time value.


Member Function Documentation

oaFloat oaTimer::getElapsed   const
 

This function returns the elapsed time from when the oaTimer object was constructed or from the last call to reset().

oaFloat oaTimer::getElapsed  
 

This function is deprecated. Use the const version of oaTimer::getElapsed instead.

This function returns the elapsed time from when the oaTimer object was constructed or from the last call to reset().

void oaTimer::reset  
 

This function resets the time counter with a new snapshot of the clock.


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

Return to top of page