PHP函数:microtime

microtime ()  -  返回当前 Unix 时间戳和微秒数

说明:

microtime ([ bool $get_as_float ] ) : mixed

参数:

get_as_float 设为 TRUE,返回一个浮点数。如果调用时不带可选参数,本函数以 "msec sec" 的格式返回一个字符串,其中 sec 是自 Unix 纪元(0:00:00 January 1, 1970 GMT)起到现在的秒数,msec 是微秒部分。字符串的两部分都是以秒为单位返回的。

返回值:

当前 Unix 时间戳和微秒数

参考链接:

手册

Enjoy it !

原文地址:https://www.cnblogs.com/daizhongxing/p/12884372.html