mrjoelkemp/html5-local-redis — pull request #3 by mrjoelkemp (2012-08-23 05:11:40+00:00)
Title: Tic Toc

Implemented custom timer convenience methods. This will make it easier to gauge the performance of various function implementations.

* Call `tic()` to start the timer.
* Call `toc()` to stop the timer and console.log the elapsed seconds.

Notes:

* These functions are attached to the global object on purpose.
* Could be extended with other methods to get different time units (minutes, hours, millis).
* You must remove calls to these methods from your code.