php time now milliseconds code example
Example: php milliseconds
//Timing executation time of script
$startTime = microtime(true); //get time in micro seconds(1 millionth)
usleep(250);
$endTime = microtime(true);
echo "milliseconds to execute:". ($endTime-$startTime)*1000;