| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cbe44e commit 6ed8fbf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,10 +59,13 @@ function codeUnitStr(char) { | |||
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | 61 | class ReportResult { | |
| 62 | + #startTime; | ||
| 63 | + | ||
| 62 | 64 | constructor(name) { | |
| 63 | 65 | this.test = name; | |
| 64 | 66 | this.status = 'OK'; | |
| 65 | 67 | this.subtests = []; | |
| 68 | + this.#startTime = Date.now(); | ||
| 66 | 69 | } | |
| 67 | 70 | ||
| 68 | 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; | ||
| 84 | 88 | } | |
| 85 | 89 | } | |
| 86 | 90 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments