1
0
forked from fsfw/fsfw

stopwatch bugfix

This commit is contained in:
2020-04-09 17:56:48 +02:00
parent 640cc1ddec
commit 8a8761ea88
5 changed files with 43 additions and 30 deletions

View File

@ -31,7 +31,7 @@ seconds_t Stopwatch::stopSeconds() {
void Stopwatch::display() {
if(displayMode == StopwatchDisplayMode::MILLIS) {
info << "Stopwatch: Operation took " << elapsedTime.tv_sec * 1000 +
info << "Stopwatch: Operation took " << elapsedTime.tv_sec / 1000 +
elapsedTime.tv_usec * 1000 << " milliseconds" << std::endl;
}
else if(displayMode == StopwatchDisplayMode::SECONDS) {