Low-Level Timer Driver (llTimer)
D-4
Check for Timer Activity
_llTimerServiceCheck
Syntax
UINT32 _llTimerServiceCheck();
Return Value
0
No timer event
1
At least one half second has elapsed since the last time the function
returned 1
Description
This function is called by the network scheduler to determine if there has been
timer activity since the last call. When called, the timer returns 1 if a half-sec-
ond has elapsed since the last event, and 0 otherwise. On a return of 1, the
event is cleared and the function will not return 1 for another half second. Multi-
ple half second events are not “queued up”.
Get Current Time in Seconds and Milliseconds
llTimerGetTime
Syntax
UINT32 llTimerGetTime( UINT32 *pMSFrac );
Description
Returns the number of seconds that have elapsed since the timer driver was
started. If the pointer pMSFrac is non-zero, the function writes the fractional
seconds (in milliseconds) to this location (0 to 999).
Note: Although the stack does not require “real time”, take care not to simply
use a millisecond timer and divide by 1000 as the value will “wrap” every 50
days.
Get the Initial Startup Time
llTimerGetStartTime
Syntax
UINT32 llTimerGetStartTime();
Return Value
Initial start time in seconds.
Description
Returns the initial start time that was passed to _llTimerOpen().