summaryrefslogtreecommitdiffstats
path: root/mmss/now.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 22:28:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 22:28:34 +0200
commit0b696dafb3c8a6efebeaceab64fbdebdb399f7b4 (patch)
tree77b572850e3628d8a36de62e7b327542dfc70cb0 /mmss/now.hpp
parent37566202133915d76179e0fd0c7fad654fc4dda0 (diff)
downloadgmrf-0b696dafb3c8a6efebeaceab64fbdebdb399f7b4.tar
gmrf-0b696dafb3c8a6efebeaceab64fbdebdb399f7b4.zip
Get rid of mmss.hpp
Diffstat (limited to 'mmss/now.hpp')
-rw-r--r--mmss/now.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/mmss/now.hpp b/mmss/now.hpp
index 0f2e2fe..9b14127 100644
--- a/mmss/now.hpp
+++ b/mmss/now.hpp
@@ -34,11 +34,17 @@
namespace MMSS {
class now_t {
-public:
+private:
uint64_t time;
+protected:
now_t() : time(0) {}
+ void advance(uint64_t d) {
+ time += d;
+ }
+
+public:
uint64_t now() const {
return time;
}