diff --git a/include/dwarfs/speedometer.h b/include/dwarfs/speedometer.h index 526ca1a9..8044b7c5 100644 --- a/include/dwarfs/speedometer.h +++ b/include/dwarfs/speedometer.h @@ -29,7 +29,8 @@ namespace dwarfs { template class speedometer { public: - speedometer(std::chrono::milliseconds window_length) : window_length_{window_length} {} + speedometer(std::chrono::milliseconds window_length) + : window_length_{window_length} {} void put(T s) { auto now = std::chrono::steady_clock::now(); @@ -50,12 +51,11 @@ class speedometer { auto const& last = samples_.back(); auto dt = last.first - first.first; auto dv = last.second - first.second; - return (1000 * dv) / std::chrono::duration_cast(dt).count(); + return (1000 * dv) / + std::chrono::duration_cast(dt).count(); } - void clear() { - samples_.clear(); - } + void clear() { samples_.clear(); } private: std::deque> samples_;