[Piglit] [PATCH 1/9] glx-swap-event: use piglit_time_get_nano() helper
Emil Velikov
emil.l.velikov at gmail.com
Mon Jun 27 16:52:40 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/glx/glx-swap-event.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index 7519a51..a9f4136 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -41,14 +41,7 @@
static double
current_time(void)
{
- struct timeval tv;
-#ifdef __VMS
- (void) gettimeofday(&tv, NULL );
-#else
- struct timezone tz;
- (void) gettimeofday(&tv, &tz);
-#endif
- return (double) tv.tv_sec + tv.tv_usec / 1000000.0;
+ return (double) piglit_time_get_nano() / 1000000000.0;
}
PFNGLXSWAPINTERVALMESAPROC pglXSwapIntervalMESA;
--
2.8.2
More information about the Piglit
mailing list