diff options
Diffstat (limited to 'src/menu/timer.hpp')
-rw-r--r-- | src/menu/timer.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/menu/timer.hpp b/src/menu/timer.hpp index d2cd700b..fc595dc7 100644 --- a/src/menu/timer.hpp +++ b/src/menu/timer.hpp @@ -25,7 +25,8 @@ #ifndef TIMER_HPP #define TIMER_HPP -#include <stdint.h> +#include <chrono> + #include "control.hpp" #include "base/timestamp.hpp" @@ -34,13 +35,13 @@ namespace usdx class Timer : public Control { private: - float duration; + std::chrono::milliseconds duration; bool ready; Timestamp last_update; public: - Timer(Control*, float, bool = false); + Timer(Control*, std::chrono::milliseconds, bool = false); virtual ~Timer(); void update(void); |