Sleep |
Miscellaneous | |
Aptilis 1 |
Sleep(TimeToSleepInSeconds)
Sleep suspends execution of a programme
for the number of seconds indicated. No processor
cycles should be used by your application while it's
dormant, increasing the level of resources available
to other programmes.
It returns the time in seconds as GetTime does.
Return value:
Time after completion, in seconds since Jan 1st, 1970.
Example
print(gettime(), "\n") print(sleep(4), "\n")Result:
854210692.000000 854210696.000000 |