processTime: Gets the running time of the R process and its children...

processTimeR Documentation

Gets the running time of the R process and its children processes

Description

Gets the running time of the R process and its children processes. This function is a safe wrapper for proc.time(), which might not exist on all platforms. It "determines how much time (in seconds) the currently running R process already consumed". In addition it adds descriptive names of the returned values. For more details, see proc.time().

Usage

## Default S3 method:
processTime(since=NULL, units=c("seconds", "milliseconds", "minutes", "hours", "days"),
  fmtstr=NULL, ...)

Arguments

since

An optional numeric vector to be subtracted from the value of proc.time(). This is useful for calculating "lap times".

units

A character string specifying the unit of the returned values.

fmtstr

If given, a format string to convert the times to strings via sprintf().

...

Not used.

Value

Returns a named numeric vector of length 5. For more details, see proc.time().

Author(s)

Henrik Bengtsson

See Also

proc.time(). system.time(). gc.time().


HenrikBengtsson/aroma.core documentation built on Feb. 20, 2024, 9:17 p.m.