mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Merge pull request #13974 from samcake/black-ter
Fix a missing std::chrono::duration_cast
This commit is contained in:
commit
f79c92b4ff
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