LendAndRegret/node_modules/es-toolkit/dist/compat/util/now.d.ts
2026-05-02 17:27:43 +08:00

19 lines
490 B
TypeScript

/**
* Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
*
* @returns {number} 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;
export { now };