OpenGL ES SDK for Android
ARM Developer Center
|
Provides a platform independent high resolution timer. More...
#include <Timer.h>
Public Member Functions | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
float | getInterval () |
Returns the time passed since getInterval() was last called. More... | |
float | getFPS () |
Returns the FPS (Frames Per Second). More... | |
bool | isTimePassed (float seconds=1.0f) |
Tests if 'seconds' seconds have passed since reset() or this method was called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
float | getInterval () |
Returns the time passed since getInterval() was last called. More... | |
float | getFPS () |
Returns the FPS (Frames Per Second). More... | |
bool | isTimePassed (float seconds=1.0f) |
Tests if 'seconds' seconds have passed since reset() or this method was called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Timer () | |
Default Constructor. More... | |
void | reset () |
Resets the timer to 0.0f. More... | |
float | getTime () |
Returns the time passed since object creation or since reset() was last called. More... | |
Private Attributes | |
int | frameCount |
float | fps |
float | lastTime |
timeval | startTime |
timeval | currentTime |
float | lastIntervalTime |
float | fpsTime |
Provides a platform independent high resolution timer.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
MaliSDK::Timer::Timer | ( | ) |
Default Constructor.
float MaliSDK::Timer::getFPS | ( | ) |
float MaliSDK::Timer::getFPS | ( | ) |
Returns the FPS (Frames Per Second).
This function must be called once per frame.
float MaliSDK::Timer::getInterval | ( | ) |
Returns the time passed since getInterval() was last called.
If getInterval() has not been called before, it retrieves the time passed since object creation or since reset() was called.
float MaliSDK::Timer::getInterval | ( | ) |
Returns the time passed since getInterval() was last called.
If getInterval() has not been called before, it retrieves the time passed since object creation or since reset() was called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
float MaliSDK::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
bool MaliSDK::Timer::isTimePassed | ( | float | seconds = 1.0f | ) |
Tests if 'seconds' seconds have passed since reset() or this method was called.
[in] | seconds | number of seconds passed default is 1.0 |
bool MaliSDK::Timer::isTimePassed | ( | float | seconds = 1.0f | ) |
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.
void MaliSDK::Timer::reset | ( | ) |
Resets the timer to 0.0f.