From 3a78f4fa002a78fa8a00ad51795b5b70b79c647a Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 30 Apr 2018 10:07:38 +1000 Subject: Use const where possible. --- src/ElapsedPeriod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ElapsedPeriod.h') diff --git a/src/ElapsedPeriod.h b/src/ElapsedPeriod.h index bbbc6d7fb..1e2c96eb4 100644 --- a/src/ElapsedPeriod.h +++ b/src/ElapsedPeriod.h @@ -19,7 +19,7 @@ public: } /// Return duration as floating point seconds double Duration(bool reset=false) { - std::chrono::high_resolution_clock::time_point tpNow = + const std::chrono::high_resolution_clock::time_point tpNow = std::chrono::high_resolution_clock::now(); const std::chrono::duration stylingDuration = std::chrono::duration_cast>(tpNow - tp); -- cgit v1.2.3