diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-21 03:29:17 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-21 03:29:17 +0100 |
commit | 196f41688d01b7f0a79567c617fd6dd3171150ff (patch) | |
tree | a39f679bfc3011ccd6ac42c217967dfda24e8a2d /src/menu/timer.hpp | |
parent | 32f1cc8a22f62c18ba350eea440dee3c560fbc19 (diff) | |
download | usdx-196f41688d01b7f0a79567c617fd6dd3171150ff.tar.gz usdx-196f41688d01b7f0a79567c617fd6dd3171150ff.tar.xz usdx-196f41688d01b7f0a79567c617fd6dd3171150ff.zip |
menu/timer: use base/timestamp
Diffstat (limited to 'src/menu/timer.hpp')
-rw-r--r-- | src/menu/timer.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/menu/timer.hpp b/src/menu/timer.hpp index 17426332..a76a4411 100644 --- a/src/menu/timer.hpp +++ b/src/menu/timer.hpp @@ -27,20 +27,20 @@ #include <stdint.h> #include "control.hpp" +#include "base/timestamp.hpp" namespace usdx { class Timer : public Control { private: - uint32_t duration; - uint32_t last_update; + float duration; bool ready; - uint32_t now(void) const; + Timestamp last_update; public: - Timer(Control*, uint32_t, bool = false); + Timer(Control*, float, bool = false); virtual ~Timer(); void update(void); |