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
1 merge request!309Resolve "Search and remove all "cout" . "cerr", "iostream" and "endl" and replace by spdlog"
......@@ -12,7 +12,6 @@
#include <catch2/catch.hpp>
#include <chrono>
#include <iostream>
#include <thread>
using namespace corsika;
......@@ -39,15 +38,15 @@ TEST_CASE("FunctionTimer", "[Timer]") {
auto test = corsika::FunctionTimer(testFunc);
std::cout << test() << std::endl;
std::cout << test.getTime().count() << std::endl;
CORSIKA_LOG_DEBUG(test());
CORSIKA_LOG_DEBUG(test.getTime().count());
}
SECTION("Measure runtime of a class functor") {
TestClass testC;
auto test = corsika::FunctionTimer(testC);
std::cout << test() << std::endl;
std::cout << test.getTime().count() << std::endl;
CORSIKA_LOG_DEBUG(test());
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