From cf1c78f93c0e9c38094bbaac8e5191520f704c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 4 Jun 2019 20:03:40 +0200 Subject: [PATCH] GL: ffs, a time query and nowhere it mentions *what* is the time unit. --- src/Magnum/GL/TimeQuery.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Magnum/GL/TimeQuery.h b/src/Magnum/GL/TimeQuery.h index 2b63da9c7..60f8e46ba 100644 --- a/src/Magnum/GL/TimeQuery.h +++ b/src/Magnum/GL/TimeQuery.h @@ -47,7 +47,8 @@ usage of both methods: @snippet MagnumGL.cpp TimeQuery-usage2 -Using the latter results in fewer OpenGL calls when doing more measures. +Using the latter results in fewer OpenGL calls when doing more measures. All +times are reported in nanoseconds. @requires_gl33 Extension @gl_extension{ARB,timer_query} @requires_es_extension Extension @gl_extension{EXT,disjoint_timer_query} @@ -66,8 +67,8 @@ class TimeQuery: public AbstractQuery { */ enum class Target: GLenum { /** - * Elapsed time. Use @ref result() or @ref result() - * to retrieve the result. + * Elapsed time, in nanoseconds. Use @ref result() or + * @ref result() to retrieve the result. * @see @ref timestamp() */ #ifndef MAGNUM_TARGET_GLES @@ -77,9 +78,9 @@ class TimeQuery: public AbstractQuery { #endif /** - * Timestamp. For use with @ref timestamp() only, use - * @ref result() or @ref result() to retrieve - * the result. + * Timestamp, in nanoseconds. For use with @ref timestamp() only, + * use @ref result() or @ref result() to + * retrieve the result. */ #ifndef MAGNUM_TARGET_GLES Timestamp = GL_TIMESTAMP