Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Using Lock()

We can ask for a timer event to occur at a particular twelfth in the next second using the Lock() function.

...
TRequestStatus stat;
TTimerLockSpec lockspec;
RTimer timer;
...
timer.Lock(lockspec,stat)
...

The current time is A seconds + B milliseconds, then

Lock(EThreeOclock, stat);

will complete at C seconds + 3/12 milliseconds, where C=A, if B<3/12milliseconds or C=A+1.