sleep, usleep
sleep, usleep — suspend execution.
sleep (seconds)
usleep (microseconds)
secondsThe integer number of seconds to sleep.
microsecondsThe integer number of microseconds to sleep.
These functions suspend execution for the given number of seconds or microseconds, after which time the task continues. Signals and timers will still be processed during this time.
![]() | |
This function is ignored in Windows, as it would cause all scripts
to hang, but is maintained for compatibility. Instead, you can use a
.TimerAfter (3, `some_code); For example, to call the "myMethod" method with no arguments: .TimerAfter(3, `(@self).myMethod()); Or, for example, to print "end": .TimerAfter(3, `princ("end\n")); |
Gamma>sleep (3);(after 3 seconds...) tGamma>usleep (500000);(after 1/2 second...) tGamma>