File size: 253 Bytes
1e92f2d
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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}`,
  );
};