Debian Codegraph @

man/mclock.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{mclock}
4 \alias{mclock}
5 \title{Clock Utility}
6 \usage{
7 mclock()
8 }
9 \value{
10 A double.
11 }
12 \description{
13 Provides the number of elapsed milliseconds since an arbitrary reference time
14 in the past. The reference time will be the same for a given session, but may
15 differ between sessions.
16 }
17 \details{
18 A convenience function for building concurrent applications. The resolution
19 of the clock depends on the underlying system timing facilities and may not
20 be particularly fine-grained. This utility should however be faster than
21 using \code{Sys.time()}.
22 }
23 \examples{
24 time <- mclock(); msleep(100); mclock() - time
25
26 }