JSFiddle - React, Tailwind, and code Playground

HTML

<p>
A negative number indicates that the rAF timestamp is from before the rAF method was called.
</p>
<span id=x></span>

JavaScript

el = document.getElementById('x');
t0 = performance.now();
window.requestAnimationFrame(t1 => el.innerHTML = t1-t0);