public static function getMillisecond(){
list($t1, $t2) = explode(' ', microtime());
return (float
)sprintf('%.0f',(floatval($t1)+floatval($t2))*1000);
}
附: 常见时间单位bai换算:
1秒du=1000毫秒(ms) 1秒=1,000,000 微秒(μs) 1秒=1,000,000,000 纳秒(ns) 1秒=1,000,000,000,000 皮秒(ps) 1秒=1,000,000,000,000,000飞秒(fs) 秒、毫秒、微秒、纳秒、皮zhi秒、飞秒每两级之间的换算的进率为1000。