diff --git a/src/fps_limiter.cc b/src/fps_limiter.cc index e91040d..5c1897a 100644 --- a/src/fps_limiter.cc +++ b/src/fps_limiter.cc @@ -2,7 +2,7 @@ #include -FpsLimiter::FpsLimiter(size_t fps) +FpsLimiter::FpsLimiter(std::size_t fps) : _fps(fps) , _ticks(0) { diff --git a/src/fps_limiter.h b/src/fps_limiter.h index 1667d28..9617154 100644 --- a/src/fps_limiter.h +++ b/src/fps_limiter.h @@ -1,15 +1,17 @@ #ifndef FPS_LIMITER_H #define FPS_LIMITER_H +#include + class FpsLimiter { public: - FpsLimiter(size_t fps = 60); + FpsLimiter(std::size_t fps = 60); void mark(); void throttle() const; private: - const size_t _fps; - size_t _ticks; + const std::size_t _fps; + std::size_t _ticks; }; #endif /* FPS_LIMITER_H */