A stopwatch implementation for javascript.