iw4x-client/src/Utils/Time.hpp
2017-01-20 14:37:52 +01:00

20 lines
305 B
C++

#pragma once
namespace Utils
{
namespace Time
{
class Interval
{
private:
std::chrono::high_resolution_clock::time_point lastPoint;
public:
Interval() : lastPoint(std::chrono::high_resolution_clock::now()) {}
void update();
bool elapsed(std::chrono::nanoseconds nsecs);
};
}
}