Learn R Programming

nprcgenekeepr (version 2.0.0)

get_elapsed_time_str: Format the elapsed time since a start time

Description

Taken from github.com/rmsharp/rmsutilityr

Usage

get_elapsed_time_str(start_time)

Value

A character vector describing the passage of time in hours, minutes, and seconds.

Arguments

start_time

a proc_time object as returned by proc.time()

Examples

Run this code
start_time <- proc.time()
## do something
elapsed_time <- get_elapsed_time_str(start_time)

Run the code above in your browser using DataLab