mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 13:27:53 +02:00
use the std::chrono duration the way it should be
This commit is contained in:
parent
3fc47bf6fc
commit
8c7781a6d4
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ void GLBackend::do_endQuery(const Batch& batch, size_t paramOffset) {
|
|||
#endif
|
||||
|
||||
--_queryStage._rangeQueryDepth;
|
||||
auto duration_ns = (std::chrono::high_resolution_clock::now() - glquery->_batchElapsedTimeBegin);
|
||||
auto duration_ns = std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::high_resolution_clock::now() - glquery->_batchElapsedTimeBegin);
|
||||
glquery->_batchElapsedTime = duration_ns.count();
|
||||
|
||||
PROFILE_RANGE_END(render_gpu_gl_detail, glquery->_profileRangeId);
|
||||
|
|
Loading…
Reference in a new issue