📅  最后修改于: 2022-03-11 14:54:51.343000             🧑  作者: Mango
// microtime(true) returns the unix timestamp plus milliseconds as a float
$starttime = microtime(true);
/* do stuff here */
$endtime = microtime(true);
$timediff = $endtime - $starttime;