X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=9666c3259718f0db655f392a63b17889ff3d498d;hp=a034d2a12a0309c502865a5bf395d49f1527a30a;hb=ee5287fabfb214e8f7b483cde424108270525fd7;hpb=8942bd699d8e1ddede1127421ad18bed53232ff3 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.