perf(icons): updater takes 10 seconds to run with high cpu usage (#5608)
This commit is contained in:
1 parent
16c6929396
commit
ed6680ba6a
3 files changed
+45
-47
No files matched your search
@@ -41,6 +41,10 @@ export class Stopwatch {
|
||||
return dayjs().millisecond(this.startTime).fromNow(true);
|
||||
}
|
||||
|
||||
getElapsedInFormattedMilliseconds() {
|
||||
return `${this.getElapsedInMilliseconds().toFixed(0)}ms`;
|
||||
}
|
||||
|
||||
getElapsedInMilliseconds() {
|
||||
return performance.now() - this.startTime;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user