requestAnimationFrame [now] vs performance.now() time discrepancy
问题 Assumptions: rAF now time is calculated at the time the set of callbacks are all triggered. Therefore any blocking that happens before the first callback of that frame is called doesn't affect the rAF now and it's accurate--at least for that first callback. Any performance.now() measurements made before a rAF set is triggered should be earlier than rAF now . Test: Record before (a baseline time before anything happens). Set the next rAF. Compare rAF now and actual performance.now() to before