diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/util/timer.cpp | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/util/timer.cpp')
-rw-r--r-- | src/mongo/util/timer.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/mongo/util/timer.cpp b/src/mongo/util/timer.cpp index d38b7d43642..8703dc88f6e 100644 --- a/src/mongo/util/timer.cpp +++ b/src/mongo/util/timer.cpp @@ -38,22 +38,20 @@ namespace mongo { namespace { - const int64_t kMicrosPerSecond = 1000 * 1000; +const int64_t kMicrosPerSecond = 1000 * 1000; -} // unnamed namespace +} // unnamed namespace - Timer::Timer(): Timer(SystemTickSource::get()) { - } +Timer::Timer() : Timer(SystemTickSource::get()) {} - Timer::Timer(TickSource* tickSource): - _tickSource(tickSource), - _microsPerCount(static_cast<double>(kMicrosPerSecond) / - _tickSource->getTicksPerSecond()) { - reset(); - } +Timer::Timer(TickSource* tickSource) + : _tickSource(tickSource), + _microsPerCount(static_cast<double>(kMicrosPerSecond) / _tickSource->getTicksPerSecond()) { + reset(); +} - long long Timer::now() const { - return _tickSource->getTicks(); - } +long long Timer::now() const { + return _tickSource->getTicks(); +} } // namespace mongo |