Version 3 (modified by 7 years ago) ( diff ) | ,
---|
DoSleep
Pause a specified number of seconds and nanoseconds
int DoSleep(int nSeconds, long nNanoseconds);
Parameters
- nSeconds - number of seconds to pause
- nNanoseconds - number of nanoseconds to pause
Return Value
Returns 0 is successful.
Remarks
This completes pauses the application for the specified number of seconds and nanoseconds. The 825 OS may not actually be able to pause a precise number of nanoseconds. It is recommended to use SleepSeconds or SleepMilliseconds instead of DoSleep to make program code easier to read.
Examples
DisplayText(0, 0, "Starting..."); DoSleep(0, 500 * TIME_MILLISECONDS); DisplayText(0, 20, "Ready");
See Also
Note:
See TracWiki
for help on using the wiki.