Last active
October 11, 2015 13:48
-
-
Save tored/3868070 to your computer and use it in GitHub Desktop.
timer
This file contains 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
function timer() { | |
var date = new Date(); | |
return function () { | |
return (((new Date()).getTime() - date.getTime())/1000); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment