Learn R Programming

nanonext (version 0.5.4)

msleep: Sleep Utility

Description

Sleep function. May block for longer than requested, with the actual wait time determined by the capabilities of the underlying system.

Usage

msleep(msec)

Value

Invisible NULL.

Arguments

msec

integer number of milliseconds to block the caller.

Details

If 'msec' is non-integer, it will be coerced to integer. Non-numeric input will be ignored and return immediately.

Examples

Run this code
time <- mclock(); msleep(100); mclock() - time

Run the code above in your browser using DataLab