Microtime
常见例句
- The uniqid() function generates a unique ID based on the microtime (current time in microseconds).
函数的作用是:产生一个基于系统时间的独立ID(当前时间以微秒为单位)。 - Basically, constructing such a class depends on defining a couple of methods that behave as basic wrappers for the built-in PHP "microtime()" function.
不过,如果你只是想要一个简单但有效的计时器类,并且不想写复杂的代码,那么(例子中的)这个也许就可以满足你的要求了。 - Microtime -- Return current Unix timestamp with microseconds
microtime--返回当前UNIX时间戳和微秒数 - phpecho ("Page Took :");$load = microtime();print (number_format($load,2));echo (" Sec To Load.");
提供了演示的下载,请自己去试试!四:页面加载时间的代码: 返回 Microtime