Below you will find pages that utilize the taxonomy term “duration”
Posts
Simple stopwatch in javascript
If some javascript code takes too much time to execute, you probably want to see what time your code or a part of the code takes to run. I found an idea in Dave Cranes Ajax in Action. The book is a little bit old and the code provided below has been changed and simplified:
var stopwatch = {}; stopwatch.watches = \[\]; stopwatch.getWatch = function(id, startNow) { var watch = stopwatch.