aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/PerfCounterCtrl.java
Commit message (Collapse)AuthorAgeFilesLines
* Clock: Rename currentTimeNanos() -> currentNanos() as it represents the ↵Sven Gothel2023-03-061-1/+1
| | | | duration since module startup and not time.
* Fix Clock for performance counter: Add currentTimeNanos() since module ↵Sven Gothel2023-03-061-4/+10
| | | | | | | | | | | 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.
* Add PerfCounterCtrl, a simple performance counter controllerSven Gothel2023-03-061-0/+44