summaryrefslogtreecommitdiff
path: root/bench1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-20 18:43:51 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-20 18:43:51 -0400
commite4498a105ed292ee9efb1adc9e62b55dd0a110a7 (patch)
tree46259e69fe1af8ce6237846bb842c543ddda3bb2 /bench1.cpp
parent4b7549a990f5bdaddb3b76f6caf4e817a02871f1 (diff)
downloadcryptopp-git-e4498a105ed292ee9efb1adc9e62b55dd0a110a7.tar.gz
Use ::time() and ::log() instead of std::time() and std::log() (GH #512)
The 35c0fa82fd4c change broke GCC 4.8
Diffstat (limited to 'bench1.cpp')
-rw-r--r--bench1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench1.cpp b/bench1.cpp
index ce0024a6..0a03ce7a 100644
--- a/bench1.cpp
+++ b/bench1.cpp
@@ -61,7 +61,7 @@ void OutputResultBytes(const char *name, double length, double timeTaken)
std::cout << "<TD>" << std::setprecision(0) << std::setiosflags(std::ios::fixed) << mbs;
if (g_hertz > 1.0f)
std::cout << "<TD>" << std::setprecision(1) << std::setiosflags(std::ios::fixed) << timeTaken * g_hertz / length;
- g_logTotal += std::log(mbs);
+ g_logTotal += ::log(mbs);
g_logCount++;
}
@@ -97,7 +97,7 @@ void OutputResultOperations(const char *name, const char *operation, bool pc, un
if (g_hertz > 1.0f)
std::cout << "<TD>" << std::setprecision(2) << std::setiosflags(std::ios::fixed) << timeTaken * g_hertz / iterations / 1000000;
- g_logTotal += std::log(iterations/timeTaken);
+ g_logTotal += ::log(iterations/timeTaken);
g_logCount++;
}
@@ -373,7 +373,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
AddHtmlHeader();
- g_testBegin = std::time(NULLPTR);
+ g_testBegin = ::time(NULLPTR);
if (static_cast<int>(suites) == 0 || static_cast<int>(suites) > TestLast)
suites = Test::All;
@@ -399,7 +399,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
Benchmark3(t, hertz);
}
- g_testEnd = std::time(NULLPTR);
+ g_testEnd = ::time(NULLPTR);
{
StreamState state(std::cout);