summaryrefslogtreecommitdiff
path: root/src/mongo/util/system_tick_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/system_tick_source.h')
-rw-r--r--src/mongo/util/system_tick_source.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mongo/util/system_tick_source.h b/src/mongo/util/system_tick_source.h
index eec4a2cc1a7..6e331dd9904 100644
--- a/src/mongo/util/system_tick_source.h
+++ b/src/mongo/util/system_tick_source.h
@@ -32,23 +32,23 @@
namespace mongo {
- /**
- * Tick source based on platform specific clock ticks. Should be of reasonably high
- * performance. The maximum span measurable by the counter and convertible to microseconds
- * is about 10 trillion ticks. As long as there are fewer than 100 ticks per nanosecond,
- * timer durations of 2.5 years will be supported. Since a typical tick duration will be
- * under 10 per nanosecond, if not below 1 per nanosecond, this should not be an issue.
- */
- class SystemTickSource final : public TickSource {
- public:
- TickSource::Tick getTicks() override;
+/**
+ * Tick source based on platform specific clock ticks. Should be of reasonably high
+ * performance. The maximum span measurable by the counter and convertible to microseconds
+ * is about 10 trillion ticks. As long as there are fewer than 100 ticks per nanosecond,
+ * timer durations of 2.5 years will be supported. Since a typical tick duration will be
+ * under 10 per nanosecond, if not below 1 per nanosecond, this should not be an issue.
+ */
+class SystemTickSource final : public TickSource {
+public:
+ TickSource::Tick getTicks() override;
- TickSource::Tick getTicksPerSecond() override;
+ TickSource::Tick getTicksPerSecond() override;
- /**
- * Gets the singleton instance of SystemTickSource. Should not be called before
- * the global initializers are done.
- */
- static SystemTickSource* get();
- };
-} // namespace mongo
+ /**
+ * Gets the singleton instance of SystemTickSource. Should not be called before
+ * the global initializers are done.
+ */
+ static SystemTickSource* get();
+};
+} // namespace mongo