powered by
Print duration in human readable format.
PrintDuration(t, CallingFct = "")
Prints a character to the screen.
character
Duration; numeric of length 1 or 3.
numeric
length
Name of the calling function.
The duration will be printed in the format: hours/minutes/seconds.
ti <- getTime_() for (i in 1:100) x = i*22.1 tf <- getTime_() duration <- ComputeDuration(ti, tf) PrintDuration(duration, "test")
Run the code above in your browser using DataLab