X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FUtility%2FTimer.php;fp=web%2Fcore%2Flib%2FDrupal%2FComponent%2FUtility%2FTimer.php;h=4fc36e43aea994cc9bba043f61bf9914001d95ef;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=b8dc0269764aae96a47b7327e3bfb100d941844c;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/lib/Drupal/Component/Utility/Timer.php b/web/core/lib/Drupal/Component/Utility/Timer.php index b8dc02697..4fc36e43a 100644 --- a/web/core/lib/Drupal/Component/Utility/Timer.php +++ b/web/core/lib/Drupal/Component/Utility/Timer.php @@ -20,7 +20,7 @@ class Timer { * @param $name * The name of the timer. */ - static public function start($name) { + public static function start($name) { static::$timers[$name]['start'] = microtime(TRUE); static::$timers[$name]['count'] = isset(static::$timers[$name]['count']) ? ++static::$timers[$name]['count'] : 1; } @@ -34,7 +34,7 @@ class Timer { * @return int * The current timer value in ms. */ - static public function read($name) { + public static function read($name) { if (isset(static::$timers[$name]['start'])) { $stop = microtime(TRUE); $diff = round(($stop - static::$timers[$name]['start']) * 1000, 2); @@ -57,7 +57,7 @@ class Timer { * A timer array. The array contains the number of times the timer has been * started and stopped (count) and the accumulated timer value in ms (time). */ - static public function stop($name) { + public static function stop($name) { if (isset(static::$timers[$name]['start'])) { $stop = microtime(TRUE); $diff = round(($stop - static::$timers[$name]['start']) * 1000, 2);