unsigned int TimerGetMsExpired();

 

Returns the number of milliseconds elapsed since the last time TimerGetMsExpired() was called.

 

Return Value

 

Number of milliseconds elapsed since the last time TimerGetMsExpired() was called.

 

Remarks

 

TimerGetMsExpired() returns the number of milliseconds elapsed since the last time TimerGetMsExpired() was called.

 

Availability

 

Available in DragonFireSDK 1.4 and later.

 

Example

 

The example below constantly prints the elapsed time in milliseconds (since the last call to TimerGetMsExpired()) to the console.

 

#include "DragonFireSDK.h"

 

unsigned int ms;

 

void AppMain()

{

   TimerGetMsExpired();

}

 

void OnTimer()

{

   ms=TimerGetMsExpired();

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

}

 

void AppExit()

{

 

}