time_output: Outputs elapsed time.

View source: R/00_helpers.R

time_outputR Documentation

Outputs elapsed time.

Description

Given a time, prints the time elapsed from that time until now.

Usage

time_output(start, msg = "")

Arguments

start

A time variable of class POSIXct, POSIXt.

msg

A string with a message to print out after the elapsed time.

Value

Prints to console, the time from which process started start - ended, and > time elapsed from start until now.

Examples


 start <- Sys.time()
 flowGraph:::time_output(start,'start - now > time elapsed')


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.