#include "pch.h" #include "Timer.h" #include #include using namespace std::chrono; Timer::Timer() { Reset(); } void Timer::Reset() { _start = high_resolution_clock::now(); } double Timer::GetElapsedMS() const { high_resolution_clock::time_point end = high_resolution_clock::now(); duration span = duration_cast>(end - _start); return span.count() * 1000.0; }