iw4x-client/src/Utils/Time.hpp

18 lines
291 B
C++
Raw Normal View History

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);
};
}
}