07 | function get_microtime() |
09 | list( $usec , $sec ) = explode ( ' ' , microtime()); |
10 | return ((float) $usec + (float) $sec ); |
15 | $this ->StartTime = $this ->get_microtime(); |
20 | $this ->StopTime = $this ->get_microtime(); |
25 | return round (( $this ->StopTime - $this ->StartTime) * 1000, 1); |
38 | for ( $i =0; $i <1000000; $i ++) |
46 | echo "页面执行时间: " . $runtime ->spent(). " 毫秒" ; |
|