We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036c89f commit 1119330Copy full SHA for 1119330
test/common/wpt.js
@@ -59,10 +59,13 @@ function codeUnitStr(char) {
59
}
60
61
class ReportResult {
62
+ #startTime;
63
+
64
constructor(name) {
65
this.test = name;
66
this.status = 'OK';
67
this.subtests = [];
68
+ this.#startTime = Date.now();
69
70
71
addSubtest(name, status, message) {
@@ -81,6 +84,7 @@ class ReportResult {
81
84
82
85
finish(status) {
83
86
this.status = status ?? 'OK';
87
+ this.duration = Date.now() - this.#startTime;
88
89
90
@@ -649,6 +653,7 @@ class WPTRunner {
649
653
scriptsToRun.push(obj);
650
654
651
655
run(async () => {
656
+ const startTime = Date.now();
652
657
const worker = new Worker(workerPath, {
658
execArgv: this.flags,
659
workerData: {
0 commit comments