microtime()等时间函数函数简记 microtime()获取当前的unix时间戳和微妙数,如果带上参数(true),会返回一个浮点数,在支持gettimeofday()函数的系统上可用。 举个栗子: 获取当前时间戳可以使用如下方式: $ntime=gettimeofday(true); $ntime=microtime(true); $stime=expload(" ",microtime());$ntime=$stime[0]+$stime[1];