| 1 | = DoSleep = |
| 2 | Pause a specified number of seconds and nanoseconds |
| 3 | |
| 4 | {{{ |
| 5 | int DoSleep(int nSeconds, long nNanoseconds); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * nSeconds - number of seconds to pause |
| 11 | * nNanoseconds - number of nanoseconds to pause |
| 12 | |
| 13 | == Return Value == |
| 14 | |
| 15 | Returns 0 is successful. |
| 16 | |
| 17 | == Remarks == |
| 18 | |
| 19 | 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. |
| 20 | |
| 21 | == Examples == |
| 22 | |
| 23 | {{{ |
| 24 | DisplayText(0, 0, "Starting..."); |
| 25 | DoSleep(0, 500 * TIME_MILLISECONDS); |
| 26 | DisplayText(0, 20, "Ready"); |
| 27 | }}} |
| 28 | |
| 29 | == See Also == |
| 30 | |
| 31 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/SleepMilliseconds SleepMilliseconds] |
| 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/SleepSeconds SleepSeconds] |
| 33 | |