aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/JarUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-06 22:16:58 +0100
committerSven Gothel <[email protected]>2023-03-06 22:16:58 +0100
commit0836295b52aaad1dce10a31a13cb544802d7de03 (patch)
tree22c3993b50a2783d8ac87084936f24661ae0ff1c /src/java/com/jogamp/common/util/JarUtil.java
parenta26445909b3677a8c2de669992a13de2053fa821 (diff)
Fix Clock for performance counter: Add currentTimeNanos() since module startup, retrievable via getMonotonicStartupTime(). (performance)
Settings two long fields in getMonotonicTime() and creating Instant and using Duration for high-frequency counter is too expensive. currentTimeNanos() subtracts the startup time from the current monotonic time and returns the resulting duration in nanoseconds, which lasts for 292 years since module startup. This satisfies performance counter requirements.
Diffstat (limited to 'src/java/com/jogamp/common/util/JarUtil.java')
0 files changed, 0 insertions, 0 deletions