feat(character/pvp): add pvp page

This commit is contained in:
Axel Cocat 2022-03-09 14:28:21 +01:00
parent 4c051e316c
commit 05706007f1
145 changed files with 302 additions and 107 deletions

View file

@ -18,18 +18,18 @@ require("source-map-support").install();
const baseUrl = "https://wow.zamimg.com/modelviewer/live";
class Stopwatch {
private startTime: Date;
private startTime: number;
public constructor() {
this.start();
}
public start(): void {
this.startTime = new Date();
this.startTime = Date.now();
}
public stop(text?: string): void {
const dt = Date.now() - this.startTime.getTime();
const dt = Date.now() - this.startTime;
const txt = text ?? "Done in {time}";
console.log(txt.replace("{time}", prettyMs(dt)));
}