soundgen (version 1.5.0)

convert_sec_to_hms: Print time

Description

Internal soundgen function.

Usage

convert_sec_to_hms(time_s)

Arguments

time_s

time (s)

Value

Returns a character string like "1 h 20 min 3 s"

Details

Converts time in seconds to time in hh:mm:ss for pretty printing.

Examples

Run this code
# NOT RUN {
time_start = proc.time()
Sys.sleep(1)
time_diff = as.numeric((proc.time() - time_start)[3])
soundgen:::convert_sec_to_hms(time_diff)
# }

Run the code above in your browser using DataCamp Workspace