From 2848ab3a75fca7fe1fab71e078396ca82e64dafb Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 4 Jul 2023 08:27:24 +0200 Subject: [PATCH] clang-format speedometer --- include/dwarfs/speedometer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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_;