diff options
author | Neil <nyamatongwe@gmail.com> | 2020-06-11 10:08:29 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-06-11 10:08:29 +1000 |
commit | a2931677c6e28aad5ddd56d82e5a8814746dc5fd (patch) | |
tree | d8c143a1ebcb4e91717d241c38ec43bf1da9e6ac /src/ElapsedPeriod.h | |
parent | b34e1a6efefd7b39f14daa867510b2e2d453a0bb (diff) | |
download | scintilla-mirror-a2931677c6e28aad5ddd56d82e5a8814746dc5fd.tar.gz |
Use noexcept where safe and maintainable.
Diffstat (limited to 'src/ElapsedPeriod.h')
-rw-r--r-- | src/ElapsedPeriod.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<double> stylingDuration = |