From b2a7e8f500b1cd18d111d9a29f242ff0a8d49534 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 3 Oct 2014 14:43:00 +0000 Subject: [PATCH] function posix_times exists git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9177 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/prepend.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/prepend.php b/lib/prepend.php index 20f8927a0..15770baa1 100644 --- a/lib/prepend.php +++ b/lib/prepend.php @@ -81,8 +81,7 @@ class DebugTimer function DebugTimer() { $this->_start = $this->microtime(); - if (function_exists('posix_times')) - $this->_times = posix_times(); + $this->_times = posix_times(); } /** @@ -106,10 +105,6 @@ class DebugTimer function getStats() { - if (!isset($this->_times)) { - // posix_times() not available. - return sprintf("real: %.3f", $this->getTime('real')); - } $now = posix_times(); return sprintf("real: %.3f, user: %.3f, sys: %.3f", $this->getTime('real'), -- 2.45.0