UNPKG

@r1tsu/payload

Version:

7 lines (6 loc) 282 B
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