new typedef names

This commit is contained in:
Robin Müller 2020-06-06 23:23:20 +02:00
parent 9ed92e5e6f
commit 3d8993b0c5
2 changed files with 4 additions and 4 deletions

View File

@ -13,12 +13,12 @@ void Stopwatch::start() {
Clock::getClock_timeval(&startTime);
}
millis_t Stopwatch::stop() {
dur_millis_t Stopwatch::stop() {
stopInternal();
return elapsedTime.tv_sec * 1000 + elapsedTime.tv_usec / 1000;
}
seconds_t Stopwatch::stopSeconds() {
dur_seconds_t Stopwatch::stopSeconds() {
stopInternal();
return timevalOperations::toDouble(elapsedTime);
}

View File

@ -40,12 +40,12 @@ public:
* Calculates the elapsed time since start and returns it
* @return elapsed time in milliseconds (rounded)
*/
millis_t stop();
dur_millis_t stop();
/**
* Calculates the elapsed time since start and returns it
* @return elapsed time in seconds (double precision)
*/
seconds_t stopSeconds();
dur_seconds_t stopSeconds();
/**
* Displays the elapsed times on the osstream, depending on internal display