diff options
author | David Robillard <d@drobilla.net> | 2019-07-22 17:21:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | dacaaa5f328ac2598123aa1f0744ddd68c87e9cc (patch) | |
tree | 31bdcb5effdff7d84f946a577cd77d6462dd6083 /test/test_utils.h | |
parent | 61476f5de49b20a6836186a82082bc2b7c70e971 (diff) | |
download | pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.gz pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.bz2 pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.zip |
Move puglGetTime() to PuglWorld
Diffstat (limited to 'test/test_utils.h')
-rw-r--r-- | test/test_utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_utils.h b/test/test_utils.h index 9738d96..12dbfaa 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -148,11 +148,11 @@ printEvent(const PuglEvent* event, const char* prefix) } static inline void -puglPrintFps(PuglView* view, - PuglFpsPrinter* printer, - unsigned* const framesDrawn) +puglPrintFps(const PuglWorld* world, + PuglFpsPrinter* printer, + unsigned* const framesDrawn) { - const double thisTime = puglGetTime(view); + const double thisTime = puglGetTime(world); if (thisTime > printer->lastReportTime + 5) { const double fps = *framesDrawn / (thisTime - printer->lastReportTime); fprintf(stderr, |