#ifndef CLOCK_H #define CLOCK_H #include "gaming-core/utils/Array.h" #include "client/rendering/wrapper/GLFWWrapper.h" class Clock final { static constexpr int BITS = 7; static constexpr int LENGTH = 1 << BITS; int index; GLFWWrapper::Nanos last; GLFWWrapper::Nanos sum; Array time; public: Clock(); GLFWWrapper::Nanos update(); float getUpdatesPerSecond() const; }; #endif