From c7e5df0ae9ac03ee4f9228b07541e5aa6902fd6e Mon Sep 17 00:00:00 2001 From: Felix Berlakovich Date: Fri, 29 Nov 2024 12:15:26 +0100 Subject: [PATCH] Fix incorrect unit in wall clock timer output --- .../src/jdk/graal/compiler/debug/WallClockTimerKey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/WallClockTimerKey.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/WallClockTimerKey.java index b1fe7b179802..eacf5b6223cf 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/WallClockTimerKey.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/WallClockTimerKey.java @@ -63,11 +63,11 @@ public TimeUnit getTimeUnit() { @Override public String toHumanReadableFormat(long value) { - return String.format("%d ms", value); + return String.format("%d ns", value); } @Override public Pair toCSVFormat(long value) { - return Pair.create(Long.toString(value), "ms"); + return Pair.create(Long.toString(value), "ns"); } }