class
#include <core/gl/render_device.hpp>
Timer Abstract timer.
Public functions
Function documentation
bool cubos:: core:: gl:: impl:: Timer:: done() pure virtual
Checks if result is available.
Returns | Whether the result is available. |
---|
int cubos:: core:: gl:: impl:: Timer:: result() pure virtual
Gets the result, in nanoseconds.
Returns | Time spent in region, in nanoseconds, or -1 if an error occurred while querying the time. |
---|
Blocks until a result is available.