iw4x-client/src/Utils/Time.cpp
2017-01-19 22:55:15 +01:00

18 lines
317 B
C++

#include "STDInclude.hpp"
namespace Utils
{
namespace Time
{
void Interval::update()
{
this->lastPoint = std::chrono::high_resolution_clock::now();
}
bool Interval::elapsed(std::chrono::nanoseconds nsecs)
{
return ((std::chrono::high_resolution_clock::now() - this->lastPoint) >= nsecs);
}
}
}