replace getmicrotime() wrapper with microtime(true)
This commit is contained in:
parent
3af9dbd350
commit
fa9e88c367
2 changed files with 3 additions and 8 deletions
|
@ -152,7 +152,7 @@ class Feeds extends Handler_Protected {
|
||||||
|
|
||||||
$reply = array();
|
$reply = array();
|
||||||
|
|
||||||
$timing_info = getmicrotime();
|
$timing_info = microtime(true);
|
||||||
|
|
||||||
$topmost_article_ids = array();
|
$topmost_article_ids = array();
|
||||||
|
|
||||||
|
@ -750,7 +750,7 @@ class Feeds extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
function view() {
|
function view() {
|
||||||
$timing_info = getmicrotime();
|
$timing_info = microtime(true);
|
||||||
|
|
||||||
$reply = array();
|
$reply = array();
|
||||||
|
|
||||||
|
|
|
@ -478,11 +478,6 @@
|
||||||
print "</select>";
|
print "</select>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getmicrotime() {
|
|
||||||
list($usec, $sec) = explode(" ",microtime());
|
|
||||||
return ((float)$usec + (float)$sec);
|
|
||||||
}
|
|
||||||
|
|
||||||
function print_radio($id, $default, $true_is, $values, $attributes = "") {
|
function print_radio($id, $default, $true_is, $values, $attributes = "") {
|
||||||
foreach ($values as $v) {
|
foreach ($values as $v) {
|
||||||
|
|
||||||
|
@ -3065,7 +3060,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_checkpoint($n, $s) {
|
function print_checkpoint($n, $s) {
|
||||||
$ts = getmicrotime();
|
$ts = microtime(true);
|
||||||
echo sprintf("<!-- CP[$n] %.4f seconds -->", $ts - $s);
|
echo sprintf("<!-- CP[$n] %.4f seconds -->", $ts - $s);
|
||||||
return $ts;
|
return $ts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue