2
0
Files
cal/calcom/packages/lib/perf.ts
2024-08-09 00:39:27 +02:00

9 lines
200 B
TypeScript

export const logP = (message: string) => {
const start = performance.now();
return () => {
const end = performance.now();
console.log(`[PERF]: ${message} took ${end - start}ms`);
};
};