#pragma once #include class Timer { private: unsigned long duration; bool autoRestart; unsigned long currentTime; unsigned long endTime; bool running; public: Timer(unsigned long duration, bool autoRestart); void start(); bool update(unsigned long delta); bool isRunning(); };