mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +00:00
Code cleanup and some fixes from the WP Japan folks.
git-svn-id: https://develop.svn.wordpress.org/trunk@1734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -559,15 +559,6 @@ function gzip_compression() {
|
||||
// functions to count the page generation time (from phpBB2)
|
||||
// ( or just any time between timer_start() and timer_stop() )
|
||||
|
||||
function timer_start() {
|
||||
global $timestart;
|
||||
$mtime = microtime();
|
||||
$mtime = explode(' ',$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$timestart = $mtime;
|
||||
return true;
|
||||
}
|
||||
|
||||
function timer_stop($display = 0, $precision = 3) { //if called like timer_stop(1), will echo $timetotal
|
||||
global $timestart, $timeend;
|
||||
$mtime = microtime();
|
||||
|
||||
Reference in New Issue
Block a user