summaryrefslogtreecommitdiff
path: root/src/mongo/util/util.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-04-18 10:52:12 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-04-19 09:50:34 -0400
commitd187a30e162ee2b4fb050916b5558f7825155281 (patch)
tree0b5e43ac3f124f5a3cf741fb640a2ce52742ddd6 /src/mongo/util/util.cpp
parent1b1d0a04c1013bee41d522f16ac54b3231e319fc (diff)
downloadmongo-d187a30e162ee2b4fb050916b5558f7825155281.tar.gz
SERVER-5557: Rearrange mongo::Timer implementation, for clarity, code reuse.
Diffstat (limited to 'src/mongo/util/util.cpp')
-rw-r--r--src/mongo/util/util.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/util/util.cpp b/src/mongo/util/util.cpp
index 56f911bf5b2..6d6d1dbf4b0 100644
--- a/src/mongo/util/util.cpp
+++ b/src/mongo/util/util.cpp
@@ -26,14 +26,15 @@
namespace mongo {
+ unsigned long long Timer::_countsPerSecond = Timer::microsPerSecond;
+
#if defined(_WIN32)
- unsigned long long Timer::countsPerSecond;
struct AtStartup {
AtStartup() {
LARGE_INTEGER x;
bool ok = QueryPerformanceFrequency(&x);
verify(ok);
- Timer::countsPerSecond = x.QuadPart;
+ Timer::_countsPerSecond = x.QuadPart;
}
} atstartuputil;
#endif