summaryrefslogtreecommitdiff
path: root/src/mongo/util/clock_source_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/clock_source_mock.cpp')
-rw-r--r--src/mongo/util/clock_source_mock.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/util/clock_source_mock.cpp b/src/mongo/util/clock_source_mock.cpp
index e18ac5a823e..a85b3045a0f 100644
--- a/src/mongo/util/clock_source_mock.cpp
+++ b/src/mongo/util/clock_source_mock.cpp
@@ -29,9 +29,14 @@
#include "mongo/platform/basic.h"
#include "mongo/util/clock_source_mock.h"
+#include "mongo/util/time_support.h"
namespace mongo {
+Milliseconds ClockSourceMock::getPrecision() {
+ return Milliseconds(1);
+}
+
Date_t ClockSourceMock::now() {
return _now;
}