diff options
author | Martijn Stolk <github@netripper.nl> | 2011-03-09 23:57:51 +0300 |
---|---|---|
committer | Martijn Stolk <github@netripper.nl> | 2011-03-09 23:57:51 +0300 |
commit | db2538f37161d23a77f580ac8096d1f8642aa1a8 (patch) | |
tree | 52040ac387834be9d4467183af8b4ce0956e8b8e /src/Timer.h | |
parent | 6d62ae7237eb7c98853d2581cc67f11f2b29bab1 (diff) |
Overlay: add sorting options, including ability to sort on last state change
Diffstat (limited to 'src/Timer.h')
-rw-r--r-- | src/Timer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Timer.h b/src/Timer.h index ad61ee48b..dff3642ae 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -43,6 +43,14 @@ public: quint64 elapsed() const; quint64 restart(); bool isStarted() const; + + /*! Compares the elapsed time, not the start time + */ + bool operator<(const Timer &other) const; + + /*! Compares the elapsed time, not the start time + */ + bool operator>(const Timer &other) const; }; #endif |