microtime()获取当前的unix时间戳和微妙数,如果带上参数(true),会返回一个浮点数,在支持gettimeofday()函数的系统上可用。

     举个栗子:

  获取当前时间戳可以使用如下方式:

  $ntime=gettimeofday(true);

  $ntime=microtime(true);

  $stime=expload(" ",microtime());$ntime=$stime[0]+$stime[1];

  

posted on 2016-01-14 15:11  PHPSir  阅读(295)  评论(0编辑  收藏  举报