UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

10 lines (9 loc) 319 B
// @ts-strict-ignore export const timestamp = (label)=>{ if (!process.env.PAYLOAD_TIME) { process.env.PAYLOAD_TIME = String(new Date().getTime()); } const now = new Date(); console.log(`[${now.getTime() - Number(process.env.PAYLOAD_TIME)}ms] ${label}`); }; //# sourceMappingURL=timestamp.js.map