Return a high-resolution timestamp in milliseconds.
Uses the performance.now() clock when available (monotonic, high resolution), otherwise falls back to Date.now().
performance.now()
Date.now()
timestamp in milliseconds (relative for performance.now, epoch for Date.now)
Return a high-resolution timestamp in milliseconds.
Uses the
performance.now()clock when available (monotonic, high resolution), otherwise falls back toDate.now().