Skip to content
Human-readable interface for `setTimeout`, `clearTimeout` functions
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist
src
.gitignore Ignore node modules in repository
Gruntfile.js
README.md
bower.json
package.json

README.md

What is it?

Simple pure Javascript timer.

Just a wrapper for setTimeout, clearTimeout functions with human-readable interfaces.

// Define a new deferred task
var task = new Timer(function() { console.log('DONE'); }, 5e3);

// then pause for some reasons
task.pause()

// and resume
task.resume()

// or even restart
task.restart();

License

Licensed under the MIT license.

Copyrights

Copyrights © 2013 by Vital Kudzelka vital.kudzelka@gmail.com.

Something went wrong with that request. Please try again.