summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2013-10-09 11:47:44 -0400
committerBenety Goh <benety@mongodb.com>2013-10-10 08:59:46 -0400
commit34f6c8e7db271ae320b0ae384b1d2f67cafb8e16 (patch)
treeb167aee39cbe37968485e086970d2792fcb6f894 /src/mongo/util/time_support.h
parentb49b13c48e0450398642d240b4dbbd259c399dc1 (diff)
downloadmongo-34f6c8e7db271ae320b0ae384b1d2f67cafb8e16.tar.gz
SERVER-10202 added testing-only function getNextSleepMillis(). stabilized BasicTests::SleepBackoffTest under Windows 32-bit
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r--src/mongo/util/time_support.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h
index 437bda4de78..46cee85e97a 100644
--- a/src/mongo/util/time_support.h
+++ b/src/mongo/util/time_support.h
@@ -99,6 +99,12 @@ namespace mongo {
void nextSleepMillis();
+ /**
+ * testing-only function. used in dbtests/basictests.cpp
+ */
+ int getNextSleepMillis(int lastSleepMillis, unsigned long long currTimeMillis,
+ unsigned long long lastErrorTimeMillis) const;
+
private:
// Parameters