The setInterval function can "drift" over time. This is especially noticeable if you switch to another tab while the stopwatch is running. In this case chrome increases the interval to save cpu resources which makes the stopwatch tick slower. The difference can get really severe, for me the stopwatch ticks about 3 times slower when kept in background.