aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Chrono.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Chrono.hxx b/src/Chrono.hxx
index 4c9fafe58..f20edaf59 100644
--- a/src/Chrono.hxx
+++ b/src/Chrono.hxx
@@ -73,6 +73,14 @@ public:
constexpr double ToDoubleS() const {
return double(count()) / 1000.;
};
+
+ constexpr bool IsZero() const {
+ return count() == 0;
+ }
+
+ constexpr bool IsPositive() const {
+ return count() > 0;
+ }
};
#endif