summaryrefslogtreecommitdiff
path: root/src/base/time.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/time.hh')
-rw-r--r--src/base/time.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/time.hh b/src/base/time.hh
index 2c54f2675..4fc3dd3ef 100644
--- a/src/base/time.hh
+++ b/src/base/time.hh
@@ -42,6 +42,8 @@
#include <iosfwd>
#include <string>
+#include "base/types.hh"
+
class Time
{
protected:
@@ -99,6 +101,18 @@ class Time
*/
void set(time_t _sec, long _nsec) { sec(_sec); nsec(_nsec); }
+ /**
+ * Set the current time from a value measured in Ticks
+ * @param ticks Number of ticks to convert into a time.
+ */
+ void setTick(Tick ticks);
+
+ /**
+ * Get the current time from a value measured in Ticks
+ * @return Time value measured in Ticks.
+ */
+ Tick getTick() const;
+
const Time &
operator=(const Time &other)
{