cubos::core::gl::impl::PipelinedTimer class

Pipelined timer.

Public functions

void begin()
Starts a region to be timed.
auto end() -> Result
Ends a region.

Function documentation

Result cubos::core::gl::impl::PipelinedTimer::end()

Ends a region.

Returns Time spent in region in the latest frame that finished rendering, in nanoseconds (-1 if no frame has finished yet), and how many frames behind the CPU this frame lags.