2016-11-05 07:56:12 -04:00
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
namespace Time
|
|
|
|
{
|
|
|
|
class Interval
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::chrono::high_resolution_clock::time_point LastPoint;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Interval() : LastPoint(std::chrono::high_resolution_clock::now()) {}
|
|
|
|
|
2016-11-13 06:10:51 -05:00
|
|
|
void Update();
|
2016-11-05 07:56:12 -04:00
|
|
|
bool Elapsed(std::chrono::nanoseconds nsecs);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|