Skip to content

Commit

Permalink
increase resolution of step time logging
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dinkelbach <[email protected]>
  • Loading branch information
dinkelbachjan committed Apr 3, 2023
1 parent 0f4dae8 commit 10c1466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpsim/src/Simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ void Simulation::logStepTimes(String logName) {
Real stepTimeSum = 0;
for (auto meas : mStepTimes) {
stepTimeSum += meas;
stepTimeLog->info("{:f}", meas);
stepTimeLog->info("{:.9f}", meas);
}
SPDLOG_LOGGER_INFO(mLog, "Average step time: {:.6f}", stepTimeSum / mStepTimes.size());
SPDLOG_LOGGER_INFO(mLog, "Average step time: {:.9f}", stepTimeSum / mStepTimes.size());
}

CPS::AttributeBase::Ptr Simulation::getIdObjAttribute(const String &comp, const String &attr) {
Expand Down

0 comments on commit 10c1466

Please sign in to comment.