From dacaaa5f328ac2598123aa1f0744ddd68c87e9cc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 17:21:52 +0200 Subject: Move puglGetTime() to PuglWorld --- test/test_utils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_utils.h') 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, -- cgit v1.2.1