summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-07-15 22:21:50 -0400
committerEliot Horowitz <eliot@10gen.com>2012-07-27 16:28:48 -0400
commit6701b6ea856ec2b34fe85429f5e920c86cb8391d (patch)
treec3e250ff5fad9e10bf921093743c8c924be4f5d2
parent6aa80782bc30162efb8f736863ed4b6bf2e94244 (diff)
downloadmongo-6701b6ea856ec2b34fe85429f5e920c86cb8391d.tar.gz
SERVER-6391 add resetLastTime to ElapsedTracker
-rw-r--r--util/net/listen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/net/listen.h b/util/net/listen.h
index 415db1e3fb6..a2289bc219f 100644
--- a/util/net/listen.h
+++ b/util/net/listen.h
@@ -123,6 +123,10 @@ namespace mongo {
return false;
}
+ void resetLastTime() {
+ _last = Listener::getElapsedTimeMillis();
+ }
+
private:
int _h;
int _ms;