While this is a nice one liner, `max()` is slow. Here is more verbose but more efficient variant, roughly twice faster:

```php
if (0 > $timeout = $scheduledAt - $this->timers->getTime()) {
    $timeout = 0;
}
```