Mobile API Reference
MicroStrategy 2019
|
#include <Timer.h>
Public Member Functions | |
Timer () | |
void | ResetTimer () |
unsigned Int64 | GetAgeInMicroseconds () const |
unsigned Int64 | GetAgeInMilliseconds () const |
unsigned Int64 | GetAgeInSeconds () const |
The Timer class can be used to measure time intervals with microsecond precision. The start time is always the moment of creation of Timer instance, and the end time is whenever GetAgeInMicroseconds is called.
Example:
MBase::Timer lTimer;
// do something here
::printf("it took %ld usec.", lTimer.GetAgeInMicroseconds());
MBase::Timer::Timer | ( | ) |
unsigned Int64 MBase::Timer::GetAgeInMicroseconds | ( | ) | const |
|
inline |
|
inline |
void MBase::Timer::ResetTimer | ( | ) |