summaryrefslogtreecommitdiff
path: root/deps/v8/tools/system-analyzer/log/timer.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/system-analyzer/log/timer.mjs')
-rw-r--r--deps/v8/tools/system-analyzer/log/timer.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/tools/system-analyzer/log/timer.mjs b/deps/v8/tools/system-analyzer/log/timer.mjs
index d2ca02a46c..01bfbd0421 100644
--- a/deps/v8/tools/system-analyzer/log/timer.mjs
+++ b/deps/v8/tools/system-analyzer/log/timer.mjs
@@ -30,7 +30,7 @@ export class TimerLogEntry extends LogEntry {
}
get duration() {
- return this._endTime - this._time;
+ return Math.max(0, this._endTime - this._time);
}
covers(time) {
@@ -53,4 +53,4 @@ export class TimerLogEntry extends LogEntry {
'duration',
];
}
-} \ No newline at end of file
+}