Skip to content

Instantly share code, notes, and snippets.

@525c1e21-bd67-4735-ac99-b4b0e5262290
Created October 2, 2010 03:13
Show Gist options
  • Save 525c1e21-bd67-4735-ac99-b4b0e5262290/607226 to your computer and use it in GitHub Desktop.
Save 525c1e21-bd67-4735-ac99-b4b0e5262290/607226 to your computer and use it in GitHub Desktop.
previous = 0
tick: ->
now = new Date().getTime()
if previous != 0
elapsed = now - previous
previous = now
setInterval tick, 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment