ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
| 程序运行时间 | | | --- | --- | ``` function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } #Example $start_time = microtime_float(); <----- 程序开始 -----> ... ... ... ... <----- 程序结束 -----> $end_time = microtime_float(); $time = $end_time - $start_time; #Example 1 $start_time = microtime(true); #该函数加上true参数之后,直接返回的是1561445171.3273 <----- 程序开始 -----> ... ... ... ... <----- 程序结束 -----> $end_time = microtime(true); $time = $end_time - $start_time; ```