IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 146d5411 authored by Felix Riehn's avatar Felix Riehn Committed by ralfulrich
Browse files

testFunctionTimer

parent 0523a4eb
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <chrono> #include <chrono>
#include <iostream>
#include <thread> #include <thread>
using namespace corsika; using namespace corsika;
...@@ -39,15 +38,15 @@ TEST_CASE("FunctionTimer", "[Timer]") { ...@@ -39,15 +38,15 @@ TEST_CASE("FunctionTimer", "[Timer]") {
auto test = corsika::FunctionTimer(testFunc); auto test = corsika::FunctionTimer(testFunc);
std::cout << test() << std::endl; CORSIKA_LOG_DEBUG(test());
std::cout << test.getTime().count() << std::endl; CORSIKA_LOG_DEBUG(test.getTime().count());
} }
SECTION("Measure runtime of a class functor") { SECTION("Measure runtime of a class functor") {
TestClass testC; TestClass testC;
auto test = corsika::FunctionTimer(testC); auto test = corsika::FunctionTimer(testC);
std::cout << test() << std::endl; CORSIKA_LOG_DEBUG(test());
std::cout << test.getTime().count() << std::endl; CORSIKA_LOG_DEBUG(test.getTime().count());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment