Skip to contents

Print time difference in a standard message for logging purposes

Usage

log_total_time(begin, end)

Arguments

begin

A data-time object, signifying the beginning or a process

end

A data-time object, signifying the end of a process

Value

A numeric value of the time difference in seconds

Examples

begin <- Sys.time()
# do something
end <- Sys.time() + 999
log_total_time(begin, end)
#> [1] 999.0005