derfalx
2026-01-08 c2bea8a4c4aeba440b8a7b043d7ece6343a9d263
quartz/util/perf.ts
@@ -1,5 +1,5 @@
import chalk from "chalk"
import pretty from "pretty-time"
import { styleText } from "util"
export class PerfTimer {
  evts: { [key: string]: [number, number] }
@@ -14,6 +14,6 @@
  }
  timeSince(evtName?: string): string {
    return chalk.yellow(pretty(process.hrtime(this.evts[evtName ?? "start"])))
    return styleText("yellow", pretty(process.hrtime(this.evts[evtName ?? "start"])))
  }
}