From 0c7b45b4e84aa197ada7391007f7d1610c92476c Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 18 Mar 2018 22:37:49 +0100 Subject: Fix build error regarding debug log clock --- BuddhaTest/src/BuddhaTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/src/BuddhaTest.cpp') 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; -- cgit v1.2.3