X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FFrameCounter.hpp;h=0b7d38f7c5d9d1730ff33ea4916c44185c8bb936;hb=fd86376a8e7d3f1b09be3d018f772ef884937238;hp=16b6b4e5bd17152e7b88bc79ef2952bd91dbfc2e;hpb=0e3f96ecb9ade07a7b831078fee025aff44d44d4;p=blank.git diff --git a/src/app/FrameCounter.hpp b/src/app/FrameCounter.hpp index 16b6b4e..0b7d38f 100644 --- a/src/app/FrameCounter.hpp +++ b/src/app/FrameCounter.hpp @@ -12,12 +12,13 @@ class FrameCounter { public: template struct Frame { - T handle = T(0); - T update = T(0); - T render = T(0); - T running = T(0); - T waiting = T(0); - T total = T(0); + T handle; + T update; + T render; + T running; + T waiting; + T total; + Frame(); }; @@ -36,6 +37,8 @@ public: bool Changed() const noexcept { return changed; } + void Print(std::ostream &) const; + private: int Tick() noexcept; @@ -61,6 +64,18 @@ private: }; + +template +FrameCounter::Frame::Frame() +: handle(0) +, update(0) +, render(0) +, running(0) +, waiting(0) +, total(0) { + +} + } #endif