X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fscreen.h;h=9666c3259718f0db655f392a63b17889ff3d498d;hb=8c88a35a1fb0dfc9e542bb1a1c13c5f3e36eb3e5;hp=a034d2a12a0309c502865a5bf395d49f1527a30a;hpb=8942bd699d8e1ddede1127421ad18bed53232ff3;p=ipdf%2Fcode.git diff --git a/src/screen.h b/src/screen.h index a034d2a..9666c32 100644 --- a/src/screen.h +++ b/src/screen.h @@ -62,6 +62,7 @@ namespace IPDF void RenderPixels(int x, int y, int w, int h, uint8_t * pixels) const; + // Returns the CPU time (in seconds) it took to render the last completed frame. double GetLastFrameTimeCPU() const { return m_last_frame_time / SDL_GetPerformanceFrequency(); } // Returns the GPU time (in seconds) it took to render the last completed frame.