INNER CODE UNIT · TypeScript
logPerf
hyperbrowserai/HyperAgent · src/agent/index.ts:1642
function logPerf(
debug: boolean | undefined,
label: string,
start: number
): void {
if (!debug) return;
const duration = performance.now() - start;
console.log(`${label} took ${Math.round(duration)}ms`);
}