$starttime
脚本执行的开始时间,单位为毫秒,格式:1448335223.1877 。
一般用来计算程序执行时间。
【定义】 文件:xiunophp/xiunophp.php 大约 40 行:
$starttime = microtime(1);
【用例】
<?php
include "./xiunophp/xiunophp.php";
echo microtime(1) - $starttime; // 0.24460697174072
?>
【注意】
XiunoPHP 在被 include 后,会初始化十几个常用的全局变量,请注意命名不要冲突。