| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
System

# Method System.nanosleep()

Method nanosleep

  `float nanosleep(int|float seconds)`

Description

  Call the system nanosleep() function.

  This is not to be confused with the global function sleep() that does more elaborate things and can sleep with better precision (although dependant on a normal functioning system clock).

  Returns the remaining time to sleep (as the system function does).

See also

  sleep() sleep() usleep()

Note

  May not be present; only exists if the function exists in the current system.