📜  php 获取经过的时间 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:51.343000             🧑  作者: Mango

代码示例1
// microtime(true) returns the unix timestamp plus milliseconds as a float
$starttime = microtime(true);
/* do stuff here */
$endtime = microtime(true);
$timediff = $endtime - $starttime;