Answers for "php get time in microseconds"

PHP
1

php get time in milliseconds

$milliseconds = round(microtime(true) * 1000);
Posted by: Guest on November-09-2021
1

php microtime to seconds

echo date("H:i:s",$endtime-$starttime);

$duration = $endtime-$starttime;
$hours = (int)($duration/60/60);
$minutes = (int)($duration/60)-$hours*60;
$seconds = (int)$duration-$hours*60*60-$minutes*60;
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language