@web-engine-dev/time / now
Function: now()
now():
number
High-resolution timestamp in milliseconds. Uses performance.now() which is monotonic and has microsecond precision per the W3C High Resolution Time spec (https://www.w3.org/TR/hr-time/).
Returns
number
Example
typescript
const start = now();
performOperation();
const duration = now() - start;
console.log(`Operation took ${duration.toFixed(2)}ms`);