diff options
author | Jack Lloyd <[email protected]> | 2017-04-04 09:19:53 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-04 09:19:53 -0400 |
commit | 6a7cb70c7bf740af222e727e9c6d49e9bf67c999 (patch) | |
tree | aa4eaf1518b9217fb71173c39331e7e09fea58c0 /src/cli/speed.cpp | |
parent | 0ed70091083c3a2ead5080868370a59202a8dc0f (diff) | |
parent | fbef72e11c483fae16c32480cf84253a56d0ee25 (diff) |
Merge GH #965 Various code cleanups
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r-- | src/cli/speed.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 6ea70d3d1..2bffc736e 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -224,18 +224,13 @@ class Timer double milliseconds() const { return value() / 1000000.0; } double ms_per_event() const { return milliseconds() / events(); } - double seconds_per_event() const { return seconds() / events(); } uint64_t cycles_consumed() const { return m_cpu_cycles_used; } - uint64_t event_mult() const { return m_event_mult; } uint64_t events() const { return m_event_count * m_event_mult; } const std::string& get_name() const { return m_name; } const std::string& doing() const { return m_doing; } - uint64_t min_time() const { return m_min_time; } - uint64_t max_time() const { return m_max_time; } - static std::string result_string_bps(const Timer& t); static std::string result_string_ops(const Timer& t); private: @@ -1278,7 +1273,7 @@ class Speed final : public Command } } #endif - + #if defined(BOTAN_HAS_ECKCDSA) void bench_eckcdsa(const std::string& provider, std::chrono::milliseconds msec) @@ -1298,7 +1293,7 @@ class Speed final : public Command } } #endif - + #if defined(BOTAN_HAS_ECGDSA) void bench_ecgdsa(const std::string& provider, std::chrono::milliseconds msec) |