summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/scoped_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/scoped_timer.h')
-rw-r--r--src/mongo/db/exec/scoped_timer.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/mongo/db/exec/scoped_timer.h b/src/mongo/db/exec/scoped_timer.h
index c3c52243369..c11c424e59a 100644
--- a/src/mongo/db/exec/scoped_timer.h
+++ b/src/mongo/db/exec/scoped_timer.h
@@ -59,28 +59,4 @@ private:
const Date_t _start;
};
-/**
- * The timer appends the time elapsed since its construction to a BSON Object.
- */
-class TimeElapsedBuilderScopedTimer {
-public:
- explicit TimeElapsedBuilderScopedTimer(ClockSource* clockSource,
- StringData description,
- BSONObjBuilder* builder);
- ~TimeElapsedBuilderScopedTimer();
-
-private:
- ClockSource* _clockSource;
- StringData _description;
- Date_t _beginTime;
- BSONObjBuilder* _builder;
-};
-
-/*
- * This helper function only creates a TimeElapsedBuilderScopedTimer when a valid pointer to a
- * builder is passed in. This is used when timing startup tasks, so that tasks that run during
- * startup and outside of startup will only be timed when they are called during startup.
- */
-boost::optional<TimeElapsedBuilderScopedTimer> createTimeElapsedBuilderScopedTimer(
- ClockSource* clockSource, StringData description, BSONObjBuilder* builder);
} // namespace mongo