This script uses two stopwatches, one in seconds and one in ms. You can take a snapshot of the time (while counting continues in the background). Based on a high-quality easy-to-use Javascript class. Works in most browsers.