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

Version 1 (modified by Don Wilson, 14 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.

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.