最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP获得毫秒的时间microtime()用法
时间:2022-06-24 21:30:00 编辑:袖梨 来源:一聚教程网
问题不怕弱智…啥都记
| 代码如下 | 复制代码 |
|
function getmicrotime() |
|
其实就是处理了一下microtime()这个函数。
microtime()这个函数的返回值是这种形式:
0.06261400 1303715872
空格后面为当前的时间戳,空格前面是当前的精确时间
例,计算页面执行时间函数
| 代码如下 | 复制代码 |
|
/** $time_start = microtime_float(); // Sleep for a while $time_end = microtime_float(); echo "Did nothing in $time secondsn"; |
|
相关文章
- 功夫熊猫:神龙大侠官网首页入口 功夫熊猫:神龙大侠官方网站 04-08
- 问剑长生官方网址 问剑长生首页入口 04-08
- 对决!剑之川官网首页入口 对决!剑之川官方网站 04-08
- 剑中官方网页入口 剑中首页入口 04-08
- 暗区突围:无限官方网站入口 暗区突围:无限官方网页版 04-08
- claudeCode官网入口 claudeCode官网中文版地址 04-08