Timing
Timing
classThis class contains some common functions that are related to timing.
Converts the given number of seconds to a human readable string like “hours:minutes:seconds”.
Parameters
duration
Number The number of seconds.Returns String
Returns a total duration in seconds given an ISO 8601 time string.
Parameters
string
String The timing string.Returns Number
Returns a human readable sentence to represent the elapsed time since the given timestamp.
Parameters
timestamp
NumberReturns String
Returns the current timestamp in seconds.
Returns Number