Closed Brotakuu closed 8 years ago
Having some trouble getting msToTime to display with hours (ie: "02:00:00")
"02:00:00"
var timer = new Tock({ callback: function() { resultElement.text(timer.msToTime(timer.lap("{hh}:{mm}:{ss}.{ll}"))); if (start_time && timer.lap() - start_time > run_for) { resultElement.text(resultElement.text() + ' Stopped at ' + timer.msToTime(timer.lap())); timer.stop(); } } });
Still outputs just minutes and seconds.
Actually, looks like msToTimecode is the correct function to call for hours:minutes:seconds.
msToTimecode
Yeah, that's what you want. I should probably improve the docs and put them next to each other...
Having some trouble getting msToTime to display with hours (ie:
"02:00:00"
)Still outputs just minutes and seconds.