timer in command line
$ npm install -g cli-timer
# start recording from ...
cli-timer on
# => Start at Wed Jan 27 2016 11:11:02 GMT+0800 (CST)
# the time since the time started
cli-timer tick
# => 29.206 seconds
cli-timer tick
# => 33.321 seconds
# show the timer in live mode
# then the program won't exit until you press ctrl+c
cli-timer log
var timer = require('cli-timer')
timer('on')
timer('tick')
timer('log')
MIT © EGOIST