wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/DoSleep

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

Last modified 7 years ago Last modified on 04/12/18 13:10:40
Note: See TracWiki for help on using the wiki.