nanosleep

Gamma: Version 4.0
Prev |  | Next

# `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`

Prev | Home | Next
`kill` | Up | `setenv`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.