for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RemotelyLiving\PHPDNS\Observability\Performance;
use DateTimeImmutable;
use DateTimeInterface;
use RemotelyLiving\PHPDNS\Observability\Performance\Interfaces\Time;
use function microtime;
final class Timer implements Time
{
public function getMicroTime(): float
return microtime(true);
return microtime(true)
string
double
}
public function now(): DateTimeInterface
return new DateTimeImmutable('now');