Re: High-resolution timer
Posted by
gouessej on
Nov 15, 2010; 9:54am
URL: https://forum.jogamp.org/High-resolution-timer-tp1901680p1903550.html
Hi!
foxua wrote
Is there platforn-independent high-resolution Timer in JOGL (like the Timer class in LWJGL)?
As far as I know, there is no plan for such a feature in JOGL but feel free to contribute.
If you really need an high-resolution timer, maybe look at the one used in Java3D (com.sun.j3d.utils.timer.J3DTimer) or in java.util.concurrent.locks.LockSupport (parkNanos uses a native high-resolution timer under the hood). Is System.nanoTime() accurate enough for your needs?