end

End recording and calculate final results.

Return

RenderThreadStats with calculated stats.

Throws

if start was not called before.