Name | egl_nv_system_time |
Name Strings | EGL_NV_system_time |
Contact | NVIDIA Corporation (NVPerfHUDESDev@nvidia.com) |
Dependencies | Requires EGL 1.2. |
Overview | This extension exposes an alternative method of querying the system time from the driver instead of the operating system. |
Issues | Add 64 bit types?
Yes, EGL doesn't support any 64 bit types, so this extension adds int64 and uint64 types.
|
New Types | typedef long long int EGLint64NV; |
New Procedures and Functions |
EGLuint64NV eglGetSystemTimeFrequencyNV(void); |
New Tokens | None. |
Description |
The command: EGLuint64NV eglGetSystemTimeFrequencyNV(void); Returns the frequency of the system timer, in counts per second. The frequency will not change while the system is running. The command: EGLuint64NV eglGetSystemTimeNV(void); Returns the current value of the system timer. The system time in seconds can be calculated by dividing the returned value by the frequency returned by the |
Usage Example |
EGLuint64NV frequency = eglGetSystemTimeFrequencyNV(); loop { EGLuint64NV start = eglGetSystemTimeNV() / frequency; // draw EGLuint64NV end = eglGetSystemTimeNV() / frequency; EGLuint64NV interval = end - start; if (interval > 0) update_animation(interval); eglSwapBuffers(dpy, surface); } |
NVIDIA® GameWorks™ Documentation Rev. 1.0.211026 ©2014-2021. NVIDIA Corporation and affiliates. All Rights Reserved.