5#include "common/types/SmartPointers.h"
14typedef std::chrono::time_point<std::chrono::high_resolution_clock> TimePoint;
23 static const std::chrono::high_resolution_clock s_Clock;
25 TimePoint m_StartTime;
31 virtual ~Timer() =
default;
37 static TimePoint
Now();
39 float getTimeMs()
const {
return (
float)(s_Clock.now() - m_StartTime).count() * NS_TO_MS; }
40 float getTimeNs()
const {
return (s_Clock.now() - m_StartTime).count(); }
static TimePoint Now()
Gets the current time.