Add Deployment

This commit is contained in:
2025-07-18 14:47:22 +03:30
parent 7f3e11ebc4
commit ca675c1a3d
1533 changed files with 32177 additions and 127 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"])))
}
}