@brief Get the total elapsed time in seconds. * * Resets the counter, so a subsequent call to stop() or check() * without another start() will return 0.0. * * @post running() returns @c false, as if reset() were called. */
| 87 | * @post running() returns @c false, as if reset() were called. |
| 88 | */ |
| 89 | double stop() noexcept |
| 90 | { |
| 91 | auto elapsed_time = this->check(); |
| 92 | this->reset(); |
| 93 | return elapsed_time; |
| 94 | } |
| 95 | |
| 96 | /** @brief Get the current elapsed time (seconds) without stopping. */ |
| 97 | double check() const noexcept |
no test coverage detected