diff --git a/src/common/profiling_unit.cpp b/src/common/profiling_unit.cpp index 19fdab32cf00f8f0a637aeb3b8c385d158e2b449..ba9879b2e01ce5ad356dc9821aa544398b3e3030 100644 --- a/src/common/profiling_unit.cpp +++ b/src/common/profiling_unit.cpp @@ -23,7 +23,6 @@ namespace wolf { - ProfilingUnit::ProfilingUnit(double desired_period_sec) : running_(false), desired_period_(1e6 * desired_period_sec), @@ -125,8 +124,8 @@ void ProfilingUnit::printProfiling(const std::string& _tabs, std::ostream& _stre _stream << _tabs << "desired period: " << printDuration(desired_period_) // << " (reference)\n"; _stream << _tabs << "avg period: " << printDuration(average_period_) // - << (desired_period_ > 0 ? "\n" : " (reference)\n") - << _tabs << "avg time: " << printDuration(acc_duration_.count() / n_callbacks_) // + << (desired_period_ > 0 ? "\n" : " (reference)\n") << _tabs + << "avg time: " << printDuration(acc_duration_.count() / n_callbacks_) // << " (" << average_percent << "%)" << "\n" << _tabs << "stdev time: " << printDuration(sqrt(var_duration_)) //