use std::chrono::steady_clock timer

This commit is contained in:
Garux
2021-11-03 19:43:44 +03:00
parent e04c8cb649
commit 4016d64859
6 changed files with 20 additions and 140 deletions

View File

@@ -44,10 +44,9 @@ class DebugScopeTimer
public:
DebugScopeTimer( const char* operation )
: m_operation( operation ){
m_timer.start();
}
~DebugScopeTimer(){
unsigned int elapsed = m_timer.elapsed_msec();
const int elapsed = m_timer.elapsed_msec();
if ( elapsed > 0 ) {
globalOutputStream() << m_operation << ": " << elapsed << " msec\n";
}