Created
October 14, 2014 14:48
-
-
Save watert/88577164b5d1f2a26975 to your computer and use it in GitHub Desktop.
Minimal timer in coffeescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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