Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
glfwGetTime() and System.nanoTime() both claim to provide precision-based time interval management based on the host platform’s highest resolution and accuracy clock. Naturally, I will only use on...
#2: Post edited
`glfwGetTime()` and `System.nanoTime()` both claim to provide precision-based time interval management based on the host platform’s highest resolution and accuracy clock.- Naturally, I will only use one of them, so which one should I rely on?
- How do they differ, and how do their differences play out in time-sensitive calculations such as a runloop?
Possibly I should use both, but in different contexts?
- [`glfwGetTime()`][1] and [`System.nanoTime()`][2] both claim to provide precision-based time interval management based on the host platform’s highest resolution and accuracy clock.
- Naturally, I will only use one of them, so which one should I rely on?
- How do they differ, and how do their differences play out in time-sensitive calculations such as a runloop?
- Possibly I should use both, but in different contexts?
- [1]: https://www.glfw.org/docs/latest/group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a
- [2]: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/System.html#nanoTime()
#1: Initial revision
How does the GLFW time acquirement function differ from Java’s built-in time getters?
`glfwGetTime()` and `System.nanoTime()` both claim to provide precision-based time interval management based on the host platform’s highest resolution and accuracy clock. Naturally, I will only use one of them, so which one should I rely on? How do they differ, and how do their differences play out in time-sensitive calculations such as a runloop? Possibly I should use both, but in different contexts?
