Author: Jason Chavannes

# jQuery Timer Demo

Project home: http://jchavannes.com/jquery-timer

View Source

### Example 1 - Stopwatch (counts ups)

00:00:00

### Example 2 - Countdown Timer

05:00:00

### Example 3 - Slideshow (preserves time remaining when paused)

### Example 4 - The Basics (just a suped-up version of setTimeout)

timer has been executed 0 times.

    var count = 0;
    var timer = $.timer(function() {
        $('#counter').html(++count);
    });
    timer.set({ time : 1000, autostart : true });