nanosleep

nanosleep — pauses the interpreter for seconds and nanoseconds.

Syntax

nanosleep (seconds,nanosecs)

		

Arguments

seconds

The number of seconds to pause.

nanosecs

The number of nanoseconds to pause.

Returns

t after the time has elapsed.

Description

This function will pause the interpreter for the total time of seconds + nanoseconds

Example

Gamma> time(1,nanosleep( 0, 999999999 ));
1.0009529590606689453
//this example is done with the ticksize at 0.5 ms.
		

See Also

sleep