feat(character/pvp): add pvp page
This commit is contained in:
parent
4c051e316c
commit
05706007f1
145 changed files with 302 additions and 107 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue