summaryrefslogtreecommitdiffstats
path: root/mmss/now.hpp
diff options
context:
space:
mode:
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;
}