Timing event in an infinite loop

Click on the button above. The input field will count forever, starting at 0.