Performance
performance.now()
Monotonic high-resolution time relative to the environment time origin.
Formal Syntax & Structure
react syntaxreact
const elapsed=performance.now()-start;Working Example
Example Snippetreact
const elapsed=performance.now()-start;