rogerpence.com

A nerd's blog

A simple JavaScript stopwatch

User this JavaScript object to help instrument and diagnose your APIs

It's a good idea to have some metrics baked into APIs and other parts of your code. This simple little JavaScript object lets you easily capture the elapsed time in milliseconds.

javascript