1
0
forked from fsfw/fsfw

removed seconds typedef, confusing

This commit is contained in:
2020-09-05 21:59:17 +02:00
parent c7606b7b1e
commit f698275a0b
7 changed files with 22 additions and 17 deletions

View File

@ -10,7 +10,6 @@
//! Don't use these for time points, type is not large enough for UNIX epoch.
using dur_millis_t = uint32_t;
using dur_seconds_t = double;
class Clock {
public:

View File

@ -18,7 +18,7 @@ dur_millis_t Stopwatch::stop() {
return elapsedTime.tv_sec * 1000 + elapsedTime.tv_usec / 1000;
}
dur_seconds_t Stopwatch::stopSeconds() {
double Stopwatch::stopSeconds() {
stopInternal();
return timevalOperations::toDouble(elapsedTime);
}

View File

@ -45,7 +45,7 @@ public:
* Calculates the elapsed time since start and returns it
* @return elapsed time in seconds (double precision)
*/
dur_seconds_t stopSeconds();
double stopSeconds();
/**
* Displays the elapsed times on the osstream, depending on internal display