next.js/examples/cms-payload/utilities/timestamp.ts
timestamp.ts9 lines253 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}`,
  );
};
Quest for Codev2.0.0
/
SIGN IN