Learn R Programming

nanonext (version 1.3.0)

mclock: Clock Utility

Description

Provides the number of elapsed milliseconds since an arbitrary reference time in the past. The reference time will be the same for a given session, but may differ between sessions.

Usage

mclock()

Arguments

Value

A double.

Details

A convenience function for building concurrent applications. The resolution of the clock depends on the underlying system timing facilities and may not be particularly fine-grained. This utility should however be faster than using Sys.time().

Examples

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

Run the code above in your browser using DataLab