UNPKG

precise-now

Version:

Like `performance.now()` but in nanoseconds.

13 lines (12 loc) 255 B
/** * Return the number of nanoseconds since the time origin. * * @example * ```js * const start = preciseNow() * const end = preciseNow() * const duration = end - start * ``` */ declare const preciseNow: () => number; export default preciseNow;