diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-04-03 20:27:27 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-04-03 20:27:27 +0200 |
commit | fe9648fa1cdc8f9cf5216a88fadb8b96604047fd (patch) | |
tree | 011b7956b38a08b771d349866f9fabc0d5689fc9 /src/menu/timer.hpp | |
parent | 0d9371a00c47991e9f62053b649d39e9504680d8 (diff) | |
download | usdx-fe9648fa1cdc8f9cf5216a88fadb8b96604047fd.tar.gz usdx-fe9648fa1cdc8f9cf5216a88fadb8b96604047fd.tar.xz usdx-fe9648fa1cdc8f9cf5216a88fadb8b96604047fd.zip |
base/time: Replaces by std::chrono.
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); |