diff options
Diffstat (limited to 'include/log/log_read.h')
-rw-r--r-- | include/log/log_read.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/log/log_read.h b/include/log/log_read.h index 946711a..1b70aff 100644 --- a/include/log/log_read.h +++ b/include/log/log_read.h @@ -100,6 +100,12 @@ public: log_time local(*this); return local -= T; } + log_time operator+= (const timespec &T); + log_time operator+ (const timespec &T) const + { + log_time local(*this); + return local += T; + } // log_time bool operator== (const log_time &T) const @@ -134,6 +140,12 @@ public: log_time local(*this); return local -= T; } + log_time operator+= (const log_time &T); + log_time operator+ (const log_time &T) const + { + log_time local(*this); + return local += T; + } uint64_t nsec() const { |