UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

19 lines 527 B
//#region src/compat/util/now.d.ts /** * Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. * * @returns The current time in milliseconds. * * @example * const currentTime = now(); * console.log(currentTime); // Outputs the current time in milliseconds * * @example * const startTime = now(); * // Some time-consuming operation * const endTime = now(); * console.log(`Operation took ${endTime - startTime} milliseconds`); */ declare function now(): number; //#endregion export { now };