https://github.com/vitalk/timer.js
Human-readable interface for `setTimeout`, `clearTimeout` functions
https://github.com/vitalk/timer.js
Last synced: 2 months ago
JSON representation
Human-readable interface for `setTimeout`, `clearTimeout` functions
- Host: GitHub
- URL: https://github.com/vitalk/timer.js
- Owner: vitalk
- Created: 2013-12-18T18:13:40.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-22T17:21:44.000Z (over 12 years ago)
- Last Synced: 2026-02-27T08:29:30.112Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is it?
Simple pure Javascript timer.
Just a wrapper for `setTimeout`, `clearTimeout` functions with human-readable
interfaces.
```javascript
// 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 .