summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/plan_stats.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-10-02 12:47:38 -0400
committerDavid Storch <david.storch@10gen.com>2014-10-02 16:08:47 -0400
commit2aac310f11bacb54d3339700171e08d73200a456 (patch)
tree26ab10ee819cbbf27ecf25e1141109c3ac868f23 /src/mongo/db/exec/plan_stats.h
parent795462cb686806b662d3171bd34a00a5813a73a8 (diff)
downloadmongo-2aac310f11bacb54d3339700171e08d73200a456.tar.gz
SERVER-15363 fix solaris compile
Diffstat (limited to 'src/mongo/db/exec/plan_stats.h')
-rw-r--r--src/mongo/db/exec/plan_stats.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mongo/db/exec/plan_stats.h b/src/mongo/db/exec/plan_stats.h
index 9ab2d9d214d..d24f522fcc6 100644
--- a/src/mongo/db/exec/plan_stats.h
+++ b/src/mongo/db/exec/plan_stats.h
@@ -99,35 +99,6 @@ namespace mongo {
CommonStats();
};
- /**
- * This class increments a counter by a rough estimate of the time elapsed since its
- * construction when it goes out of scope.
- */
- class ScopedTimer {
- public:
- ScopedTimer(long long* counter) :
- _counter(counter),
- _start(Listener::getElapsedTimeMillis()) {
- }
-
- ~ScopedTimer() {
- long long elapsed = Listener::getElapsedTimeMillis() - _start;
- *_counter += elapsed;
- }
-
- private:
- // Default constructor disallowed.
- ScopedTimer();
-
- MONGO_DISALLOW_COPYING(ScopedTimer);
-
- // Reference to the counter that we are incrementing with the elapsed time.
- long long* _counter;
-
- // Time at which the timer was constructed.
- long long _start;
- };
-
// The universal container for a stage's stats.
struct PlanStageStats {
PlanStageStats(const CommonStats& c, StageType t) : stageType(t), common(c) { }