The duration stays correct because it is always recomputed from the difference between two readings of the monotonic clock, not by adding up ticks. What may slow down is the on-screen drawing, since browsers throttle frame scheduling in hidden tabs. When you return to the tab, the displayed number jumps straight to the right value.