mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 11:45:56 +00:00
replace getmicrotime() wrapper with microtime(true)
This commit is contained in:
@@ -478,11 +478,6 @@
|
||||
print "</select>";
|
||||
}
|
||||
|
||||
function getmicrotime() {
|
||||
list($usec, $sec) = explode(" ",microtime());
|
||||
return ((float)$usec + (float)$sec);
|
||||
}
|
||||
|
||||
function print_radio($id, $default, $true_is, $values, $attributes = "") {
|
||||
foreach ($values as $v) {
|
||||
|
||||
@@ -3065,7 +3060,7 @@
|
||||
}
|
||||
|
||||
function print_checkpoint($n, $s) {
|
||||
$ts = getmicrotime();
|
||||
$ts = microtime(true);
|
||||
echo sprintf("<!-- CP[$n] %.4f seconds -->", $ts - $s);
|
||||
return $ts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user