diff options
author | Jack Lloyd <[email protected]> | 2018-09-30 16:45:20 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-09-30 16:45:20 -0400 |
commit | 38f053a5f8cb1ca351ba52d76c15491d63fd3eb0 (patch) | |
tree | 13c06b095059af302b8e0d9562a4aa7a9a6e73b1 /src/lib/utils/timer.h | |
parent | e9ba0d9cdf0726b357d7aeca14ef43f1d10be1e8 (diff) |
Fix some MSVC warnings
Diffstat (limited to 'src/lib/utils/timer.h')
-rw-r--r-- | src/lib/utils/timer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/timer.h b/src/lib/utils/timer.h index 6a6b807db..86a17b462 100644 --- a/src/lib/utils/timer.h +++ b/src/lib/utils/timer.h @@ -33,7 +33,7 @@ class BOTAN_TEST_API Timer final {} Timer(const std::string& name, size_t buf_size = 0) : - Timer(name, "", "", 1, buf_size, 0.0, 0.0) + Timer(name, "", "", 1, buf_size, 0.0, 0) {} Timer(const Timer& other) = default; @@ -122,7 +122,7 @@ class BOTAN_TEST_API Timer final { if(m_clock_speed != 0) { - return (static_cast<double>(m_clock_speed) * value()) / 1000; + return static_cast<uint64_t>((m_clock_speed * value()) / 1000.0); } return m_cpu_cycles_used; } |