include improvements for clock, sif fixes

This commit is contained in:
Robin Müller 2020-05-25 15:25:17 +02:00
parent 4f278b610d
commit 35b9346c2b
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
extern "C" {
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
}

View File

@ -25,11 +25,11 @@ seconds_t Stopwatch::stopSeconds() {
void Stopwatch::display() {
if(displayMode == StopwatchDisplayMode::MILLIS) {
info << "Stopwatch: Operation took " << (elapsedTime.tv_sec * 1000 +
sif::info << "Stopwatch: Operation took " << (elapsedTime.tv_sec * 1000 +
elapsedTime.tv_usec / 1000) << " milliseconds" << std::endl;
}
else if(displayMode == StopwatchDisplayMode::SECONDS) {
info <<"Stopwatch: Operation took " << std::setprecision(3)
sif::info <<"Stopwatch: Operation took " << std::setprecision(3)
<< std::fixed << timevalOperations::toDouble(elapsedTime)
<< " seconds" << std::endl;
}