move calc directly into the func instead making new const

This commit is contained in:
HorizonCode 2022-08-08 15:59:03 +02:00
parent a4929c86c5
commit 7d474b8f87

View File

@ -6,8 +6,7 @@ class Timer {
} }
endTimer() { endTimer() {
const ELAPSED = Date.now() - this.start; return prettytime(Date.now() - this.start, { decimals: 2 });
return prettytime(ELAPSED, { decimals: 2 });
} }
} }