Browse Source

Util: Fix typo in timer

master
Riyyi 3 years ago
parent
commit
f6ce86dba7
  1. 2
      src/util/timer.cpp
  2. 2
      src/util/timer.h

2
src/util/timer.cpp

@ -37,7 +37,7 @@ uint64_t Timer::toMicroseconds()
return to<std::chrono::microseconds>(m_start.time_since_epoch()).count(); return to<std::chrono::microseconds>(m_start.time_since_epoch()).count();
} }
uint64_t Timer::toNaneseconds() uint64_t Timer::toNanoseconds()
{ {
return to<std::chrono::nanoseconds>(m_start.time_since_epoch()).count(); return to<std::chrono::nanoseconds>(m_start.time_since_epoch()).count();
} }

2
src/util/timer.h

@ -23,7 +23,7 @@ public:
uint64_t toSeconds(); uint64_t toSeconds();
uint64_t toMilliseconds(); uint64_t toMilliseconds();
uint64_t toMicroseconds(); uint64_t toMicroseconds();
uint64_t toNaneseconds(); uint64_t toNanoseconds();
template<typename T> template<typename T>
uint64_t elapsed(); uint64_t elapsed();

Loading…
Cancel
Save