From 877def4f243e1ef5eb39a6132f3969844e00be95 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Jun 2020 10:08:29 +1000 Subject: Backport: Use noexcept where safe and maintainable. Backport of changeset 8300:266c8247814e. --- 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 6f8cdabdf..e083c0dda 100644 --- a/src/ElapsedPeriod.h +++ b/src/ElapsedPeriod.h @@ -18,7 +18,7 @@ public: ElapsedPeriod() noexcept : tp(std::chrono::high_resolution_clock::now()) { } /// Return duration as floating point seconds - double Duration(bool reset=false) { + double Duration(bool reset=false) noexcept { const std::chrono::high_resolution_clock::time_point tpNow = std::chrono::high_resolution_clock::now(); const std::chrono::duration stylingDuration = -- cgit v1.2.3