first commit
This commit is contained in:
8
calcom/packages/lib/perf.ts
Normal file
8
calcom/packages/lib/perf.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const logP = (message: string) => {
|
||||
const start = performance.now();
|
||||
|
||||
return () => {
|
||||
const end = performance.now();
|
||||
console.log(`[PERF]: ${message} took ${end - start}ms`);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user