![]() |
OpenGL ES SDK for Android
ARM Developer Center
|
Provides a platform independent high resolution timer. More...
#include <Timer.h>
Public Member Functions | |
| Timer () | |
| Overloaded 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... | |
| bool | isTimePassed (float seconds=1.0f) |
| Tests if 'seconds' seconds have passed since reset() or this method was called. More... | |
| Timer () | |
| Overloaded 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... | |
| bool | isTimePassed (float seconds=1.0f) |
| Tests if 'seconds' seconds have passed since reset() or this method was called. More... | |
Private Attributes | |
| int | frameCount |
| float | fps |
| float | lastTime |
| float | lastIntervalTime |
| float | fpsTime |
| timeval | startTime |
| timeval | currentTime |
Provides a platform independent high resolution timer.
| AstcTextures::Timer::Timer | ( | ) |
| AstcTextures::Timer::Timer | ( | ) |
Overloaded default constructor.
| float AstcTextures::Timer::getTime | ( | ) |
| float AstcTextures::Timer::getTime | ( | ) |
Returns the time passed since object creation or since reset() was last called.
| bool AstcTextures::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 AstcTextures::Timer::isTimePassed | ( | float | seconds = 1.0f | ) |
| void AstcTextures::Timer::reset | ( | ) |
Resets the timer to 0.0f.
| void AstcTextures::Timer::reset | ( | ) |