diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-11-13 23:01:04 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-11-13 23:01:04 -0500 |
commit | eb894d2d5aad2f02881caaaca9e8607cdfc134a7 (patch) | |
tree | 8e9e9436d32e8e5427462362354fe40cda352bb3 /bench2.cpp | |
parent | 91b8d85f4cca9b128e59abda541aa9b5d67d7ad1 (diff) | |
download | cryptopp-git-eb894d2d5aad2f02881caaaca9e8607cdfc134a7.tar.gz |
Remove bold from algorithm name in benchmarks
Diffstat (limited to 'bench2.cpp')
-rw-r--r-- | bench2.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -244,11 +244,17 @@ void Benchmark3(double t, double hertz) g_allocatedTime = t;
g_hertz = hertz;
+ const char *mco;
+ if (g_hertz > 1.0f)
+ mco = "<TH>Megacycles/Operation";
+ else
+ mco = "";
+
std::cout << "\n<TABLE>";
std::cout << "\n<COLGROUP><COL style=\"text-align: left;\"><COL style=";
std::cout << "\"text-align: right;\"><COL style=\"text-align: right;\">";
- std::cout << "\n<THEAD style=\"background: #F0F0F0\"><TR><TH>Operation<TH>Milliseconds/Operation";
- std::cout << (g_hertz > 1.0f ? "<TH>Megacycles/Operation" : "") << std::endl;
+ std::cout << "\n<THEAD style=\"background: #F0F0F0\">";
+ std::cout << "\n<TR><TH>Operation<TH>Milliseconds/Operation" << mco;
std::cout << "\n<TBODY style=\"background: white;\">";
{
|