]> git.wh0rd.org - tt-rss.git/commitdiff
replace getmicrotime() wrapper with microtime(true)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 18:16:58 +0000 (22:16 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 18:16:58 +0000 (22:16 +0400)
classes/feeds.php
include/functions.php

index de001d56821b55887e0ca11584e6e0b6639fa0a9..886470e903876c4ac53373c7157844eb83edd997 100644 (file)
@@ -152,7 +152,7 @@ class Feeds extends Handler_Protected {
 
                $reply = array();
 
-               $timing_info = getmicrotime();
+               $timing_info = microtime(true);
 
                $topmost_article_ids = array();
 
@@ -750,7 +750,7 @@ class Feeds extends Handler_Protected {
        }
 
        function view() {
-               $timing_info = getmicrotime();
+               $timing_info = microtime(true);
 
                $reply = array();
 
index 688bff76cd267d206e40c1bf49e34ef12369c998..979a287616f99cd4d6dbbe8731fcaca0da45a877 100644 (file)
                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) {
 
        }
 
        function print_checkpoint($n, $s) {
-               $ts = getmicrotime();
+               $ts = microtime(true);
                echo sprintf("<!-- CP[$n] %.4f seconds -->", $ts - $s);
                return $ts;
        }