diff options
author | Sven Gothel <[email protected]> | 2023-03-06 22:16:58 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-06 22:16:58 +0100 |
commit | 0836295b52aaad1dce10a31a13cb544802d7de03 (patch) | |
tree | 22c3993b50a2783d8ac87084936f24661ae0ff1c /src/java/jogamp/android | |
parent | a26445909b3677a8c2de669992a13de2053fa821 (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/jogamp/android')
0 files changed, 0 insertions, 0 deletions