diff options
author | Sven Gothel <[email protected]> | 2023-03-06 10:28:32 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-06 10:28:32 +0100 |
commit | 717bc406e96fbff30cf02adad019cf9daa14e59c (patch) | |
tree | 110022593c156d9e339e4e5fdb726e2e08049279 /src/java/com/jogamp/gluegen/structgen | |
parent | 69b748925038b7d44fa6318536642b426e3d3e38 (diff) |
Add Clock, implementing proper monotonic and wallclock time using Instant (sec + nsec), currentTimeMillis() is also monotonic now, reused by Platform. Dropped Platform.currentTimeMicros()
Clock and its implementation was copied from jaulibs, a spin-off from Direct-BT.
The implementation uses `clock_gettime(CLOCK_MONOTONIC, &t)` and is considered safe and high-performant
as it avoids a kernel call via VDSO (GNU/Linux).
Diffstat (limited to 'src/java/com/jogamp/gluegen/structgen')
0 files changed, 0 insertions, 0 deletions