aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-18 22:37:49 +0100
committerAndreas Grois <andi@grois.info>2018-03-18 22:37:49 +0100
commit0c7b45b4e84aa197ada7391007f7d1610c92476c (patch)
tree317ddf191b688bd53c2e7c95b37fa37329f5da68
parentdc193156a82a80cc8d2321cf065019035855516f (diff)
Fix build error regarding debug log clockv0.0.3½-speed
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index c1f054d..55fe2c2 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -219,7 +219,7 @@ int main(int argc, char * argv[])
if(settings.printDebugOutput != 0 && totalIterationCount/maxOrbitlength > lastMessage)
{
lastMessage = totalIterationCount/maxOrbitlength;
- const auto ctime = std::chrono::high_resolution_clock::to_time_t(frameStop);
+ const auto ctime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::cout << "Iteration count next frame: " << iterationsPerFrame << std::endl;
std::cout << std::put_time(std::localtime(&ctime),"%X") << ": Iteration count per worker higher than: " << lastMessage*maxOrbitlength << std::endl;
std::cout << std::put_time(std::localtime(&ctime),"%X") << ": Total iteration count higher than: " << lastMessage*maxOrbitlength*workersPerFrame << std::endl;