Pike v8.0 release 1738

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.