Micro-second
Micro-seconds are one thousandth of a second. They are accessible in different ways:
DatetimeandDateTimeImmutableobjects, for datesmicrotime()for dateshrtime()for intervals
Do not use date() to get micro-seconds, as the function always returns 0.
<?php
$ms = (new Datetime()->format('u'));
$ms = microtime(true);
?>