diff options
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index d7db801..15142e1 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -524,7 +524,7 @@ puglGetTime(PuglView* view) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - return (double)ts.tv_sec + ts.tv_nsec / 1000000000.0; + return ((double)ts.tv_sec + ts.tv_nsec / 1000000000.0) - view->start_time; } void |