aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 17:21:52 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commitdacaaa5f328ac2598123aa1f0744ddd68c87e9cc (patch)
tree31bdcb5effdff7d84f946a577cd77d6462dd6083 /pugl/detail/x11.c
parent61476f5de49b20a6836186a82082bc2b7c70e971 (diff)
downloadpugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.gz
pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.bz2
pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.zip
Move puglGetTime() to PuglWorld
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r--pugl/detail/x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index e0b3dea..d54f1bf 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -600,11 +600,11 @@ puglProcessEvents(PuglView* view)
}
double
-puglGetTime(PuglView* view)
+puglGetTime(const PuglWorld* world)
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
- return ((double)ts.tv_sec + ts.tv_nsec / 1000000000.0) - view->start_time;
+ return ((double)ts.tv_sec + ts.tv_nsec / 1000000000.0) - world->startTime;
}
void