Top  Previous  Next


The NAP statement causes the program in which it is executed to pause for a given number of milliseconds.





NAP time




timeis the number of milliseconds for which the program is to sleep.



If the value of time is less than 5000, the program pauses for the given number of milliseconds. This sleep cannot be interrupted by the quit key.


If the value of time is 5000 or greater, the value is truncated to whole seconds and the program enters an interruptible sleep for that period.


The actual sleep time may vary from that specified due to process scheduling actions within the operating system.



See also: