to check whether time is not zero
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
// introducing configurable clock skew.
static time_point now(const CephContext* cct) noexcept;
+ static bool is_zero(const time_point& t) {
+ return (t == time_point::min());
+ }
+
// Allow conversion to/from any clock with the same interface as
// std::chrono::system_clock)
template<typename Clock, typename Duration>