From 76c364ec2d5f10721cb22bbf571de2b71da74d05 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 23 Nov 2013 13:15:49 -0800 Subject: [PATCH] Add const now() --- src/ripple/algorithm/api/DiscreteClock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ripple/algorithm/api/DiscreteClock.h b/src/ripple/algorithm/api/DiscreteClock.h index e896bcc383..02d307df05 100644 --- a/src/ripple/algorithm/api/DiscreteClock.h +++ b/src/ripple/algorithm/api/DiscreteClock.h @@ -95,6 +95,11 @@ public: return m_now; } + elapsed_type now() const + { + return m_now; + } + elapsed_type operator() () { return now();