aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 519b7dd..1870207 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -743,7 +743,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