correct comment

This commit is contained in:
Axel Kohlmeyer
2024-02-02 12:17:58 -05:00
parent 82f106c12a
commit ac8f02ec5a

View File

@ -201,7 +201,7 @@ bool Timer::_check_timeout()
double Timer::get_timeout_remain()
{
double remain = _timeout + timeout_start - platform::walltime();
// flag timeout if the timer expires right now
// never report a negative remaining time.
if (remain < 0.0) remain = 0.0;
return (_timeout < 0.0) ? 0.0 : remain;
}