for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\GuzzleRateLimiterMiddleware;
class SleepDeferrer implements Deferrer
{
public function getCurrentTime(): int
return round(microtime(true) * 1000);
}
public function sleep(int $milliseconds)
sleep($milliseconds / 1000);