jquery-timer icon indicating copy to clipboard operation
jquery-timer copied to clipboard

Stopwatch

Open jchavannes opened this issue 8 years ago • 2 comments

Adding stopwatch and countdown classes for more precise timing while still keeping the original timer class for reverse compatibility.

stopwatch / countdown use the system clock. This enables them to persist through many scenarios, including system hibernate. Note that changes to system clock will effect active time counters.

$.stopwatch(function () {
    $("#some-ele").html(this.getFormattedTime());
});
$.countdown(function() {
    $("#some-ele").html(this.getFormattedTime());
    if (this.isFinished()) {
        alert("Countdown complete!");
    }
}, 20);

Original PR: https://github.com/jchavannes/jquery-timer/pull/13

jchavannes avatar Mar 05 '16 08:03 jchavannes

Hey! Do you know when you will merge the pull request into to main code? Thanks!

JohnArcher avatar Sep 19 '17 08:09 JohnArcher

@JohnArcher to be honest I'm not sure. I haven't had time to work on this and I don't think it's merge ready quite yet.

Thanks for asking though, it's helpful to know people are interested in this. Hopefully I will be able to dedicate some time to this soon.

jchavannes avatar Sep 28 '17 06:09 jchavannes