Paint-Synced Visual Stimulus Start
requestAnimationFrame + performance.now()Rather than starting the timer inside a raw setTimeout callback before the screen repaints, Click Tester arms goTime inside requestAnimationFrame so the millisecond clock aligns with the actual color transition frame.