Commit acd0a47c authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Update timing output, move up to STATUS level

parent cca57277
......@@ -8,6 +8,7 @@
#include "utils/log.h"
#include <dlfcn.h>
#include <iomanip>
#include <fstream>
#define CORRYVRECKAN_ALGORITHM_PREFIX "libCorryvreckanAlgorithm"
......@@ -415,13 +416,13 @@ void Analysis::finaliseAll() {
// Display timing statistics for each algorithm, over all events and per event
void Analysis::timing() {
LOG(INFO) << "===============| Wall-clock timing (seconds) |================";
LOG(STATUS) << "===============| Wall-clock timing (seconds) |================";
for(auto& algorithm : m_algorithms) {
LOG(INFO) << algorithm->getName() << " -- "
<< algorithm->getStopwatch()->RealTime() << " = "
<< algorithm->getStopwatch()->RealTime() / m_events << " s/evt";
LOG(STATUS) << std::setw(25) << algorithm->getName() << " -- "
<< std::fixed << std::setprecision(5) << algorithm->getStopwatch()->RealTime() << " = "
<< std::setprecision(9) << algorithm->getStopwatch()->RealTime() / m_events << " s/evt";
}
LOG(INFO) << "==============================================================";
LOG(STATUS) << "==============================================================";
}
// Helper functions to set the module specific log settings if necessary
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment