Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 27, 2009
1 parent e44fdb6 commit 61de392
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ a large increment in milliseconds may cause the callbacks to be called several t
to 'catch up'.

progress = ''
setInterval(function(){
var id = setInterval(function(){
progress += '.'
}, 100)

Expand All @@ -32,6 +32,10 @@ to 'catch up'.
tick(100), print(progress) // '...'
tick(300), print(progress) // '......'

clearInterval(id)

tick(800) // Nothing happens

You may also reset at any time using resetTimers()

== License
Expand Down

0 comments on commit 61de392

Please sign in to comment.