Mobile API Reference  MicroStrategy 2019
MBase::Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()
 
void ResetTimer ()
 
unsigned Int64 GetAgeInMicroseconds () const
 
unsigned Int64 GetAgeInMilliseconds () const
 
unsigned Int64 GetAgeInSeconds () const
 

Detailed Description

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());

Constructor & Destructor Documentation

◆ Timer()

MBase::Timer::Timer ( )

Member Function Documentation

◆ GetAgeInMicroseconds()

unsigned Int64 MBase::Timer::GetAgeInMicroseconds ( ) const

◆ GetAgeInMilliseconds()

unsigned Int64 MBase::Timer::GetAgeInMilliseconds ( ) const
inline

◆ GetAgeInSeconds()

unsigned Int64 MBase::Timer::GetAgeInSeconds ( ) const
inline

◆ ResetTimer()

void MBase::Timer::ResetTimer ( )