summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/controller_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ftdc/controller_test.cpp')
-rw-r--r--src/mongo/db/ftdc/controller_test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/ftdc/controller_test.cpp b/src/mongo/db/ftdc/controller_test.cpp
index 37f406a2f39..365f06580cd 100644
--- a/src/mongo/db/ftdc/controller_test.cpp
+++ b/src/mongo/db/ftdc/controller_test.cpp
@@ -68,21 +68,22 @@ public:
BSONObjBuilder b2;
b2.appendDate(kFTDCCollectStartField,
- getGlobalServiceContext()->getClockSource()->now());
+ getGlobalServiceContext()->getPreciseClockSource()->now());
{
BSONObjBuilder subObjBuilder(b2.subobjStart(name()));
subObjBuilder.appendDate(kFTDCCollectStartField,
- getGlobalServiceContext()->getClockSource()->now());
+ getGlobalServiceContext()->getPreciseClockSource()->now());
generateDocument(subObjBuilder, _counter);
subObjBuilder.appendDate(kFTDCCollectEndField,
- getGlobalServiceContext()->getClockSource()->now());
+ getGlobalServiceContext()->getPreciseClockSource()->now());
}
- b2.appendDate(kFTDCCollectEndField, getGlobalServiceContext()->getClockSource()->now());
+ b2.appendDate(kFTDCCollectEndField,
+ getGlobalServiceContext()->getPreciseClockSource()->now());
_docs.emplace_back(b2.obj());
}