Skip to content

Instantly share code, notes, and snippets.

@watert
Created October 14, 2014 14:48
Show Gist options
  • Save watert/88577164b5d1f2a26975 to your computer and use it in GitHub Desktop.
Save watert/88577164b5d1f2a26975 to your computer and use it in GitHub Desktop.
Minimal timer in coffeescript
timer = do ->
start = (new Date).getTime()
(log...)->
time = ((new Date).getTime()-start)/1000
console.warn "timer: ",time, log...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment