I made a post about this on my website after some searching.
You can add:
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
And after your code:
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
echo "Executed in ".$totaltime." seconds";
What do you understand by synchronizing it? Run something else? More precisely for this part.
source
share