From db2538f37161d23a77f580ac8096d1f8642aa1a8 Mon Sep 17 00:00:00 2001 From: Martijn Stolk Date: Wed, 9 Mar 2011 21:57:51 +0100 Subject: Overlay: add sorting options, including ability to sort on last state change --- src/Timer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Timer.h') 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 -- cgit v1.2.3