unsigned int TimerGetMs();

 

Returns the number of milliseconds elapsed since some point of time in the past.

 

Return Value

 

Number of milliseconds elapsed.

 

Remarks

 

TimerGetMs() returns the number of milliseconds elapsed since an arbitrary point in the past.

 

Availability

 

Available in DragonFireSDK 1.4 and later.

 

Example

 

The example below constantly prints the elapsed time in milliseconds to the console.

 

#include "DragonFireSDK.h"

 

unsigned int ms;

 

void AppMain()

{

 

}

 

void OnTimer()

{

   ms = TimerGetMs();

   printf("Milliseconds: %d\n",ms);

}

 

void AppExit()

{

 

}