Initial import of transcript pipeline

This commit is contained in:
maddin
2026-04-15 00:01:38 +02:00
commit fea662392c
305 changed files with 40508 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import pretty from "pretty-time"
import { styleText } from "util"
export class PerfTimer {
evts: { [key: string]: [number, number] }
constructor() {
this.evts = {}
this.addEvent("start")
}
addEvent(evtName: string) {
this.evts[evtName] = process.hrtime()
}
timeSince(evtName?: string): string {
return styleText("yellow", pretty(process.hrtime(this.evts[evtName ?? "start"])))
}
}