--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/TimeConverter.java Fri May 17 15:53:21 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/TimeConverter.java Fri May 17 16:02:27 2019 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -69,4 +69,8 @@
public ZoneOffset getZoneOffset() {
return zoneOffet;
}
+
+ public long convertDurationNanos(long durationNanos) {
+ return (long) (durationNanos * divisor);
+ }
}