RenderStats
class RenderStats
How long the processor spent preparing each part of a frame, in milliseconds, smoothed.
Hand one to a surface and read it whenever you like, for example once a frame in a readout. It counts time spent on this side only: on a graphics card the drawing itself happens later, elsewhere, and is not seen here.