Skip to main content

interp_proc_time

Function interp_proc_time 

Source
fn interp_proc_time(
    _args: &[RValue],
    _named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Get elapsed (wall-clock) time since the interpreter started.

Returns a named numeric vector of class "proc_time" with elements user.self, sys.self, and elapsed. User and system CPU times are currently reported as 0 since we don’t track per-process CPU usage.

@return named double vector of class “proc_time”: c(user.self, sys.self, elapsed)