#include"Clock.h" #include Clock::Clock(){} Clock::~Clock(){} double Clock::Update() { auto now = std::chrono::high_resolution_clock::now(); auto nowTime = std::chrono::duration_cast(now.time_since_epoch()).count(); long long duration = nowTime - m_lastTime; m_lastTime = nowTime; float result = duration / 1000000000.0f; return result; } //std::cout << std::fixed << std::setprecision(15) <