fix mistake on time format

This commit is contained in:
Alexandra
2025-05-29 18:00:04 -06:00
parent 1a70611b10
commit b430db07db

View File

@@ -9,7 +9,7 @@ export class Timer {
elapsed() {
let elapsed = this.parseHrtimetoSeconds(process.hrtime(this.startTime));
let h = Math.floor(elapsed / 3600);
let m = Math.floor(elapsed / 60);
let m = Math.floor((elapsed / 60) % 60);
let s = Math.floor(elapsed % 60);
return `${h ? h + "h" : ""}${m ? m + "m" : ""}${s + "s"}`;
}