PHP Zdobądź czas w milisekundach
$milliseconds = round(microtime(true) * 1000);
Friendly Hawk
$milliseconds = round(microtime(true) * 1000);
//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;
$now = DateTime::createFromFormat('U.u', microtime(true));
echo $now->format("m-d-Y H:i:s.u");
$d = new DateTime();
echo $d->format("Y-m-d H:i:s.v"); // v : Milliseconds