From: <var...@us...> - 2014-10-03 14:43:07
|
Revision: 9177 http://sourceforge.net/p/phpwiki/code/9177 Author: vargenau Date: 2014-10-03 14:43:00 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function posix_times exists Modified Paths: -------------- trunk/lib/prepend.php Modified: trunk/lib/prepend.php =================================================================== --- trunk/lib/prepend.php 2014-10-03 14:39:58 UTC (rev 9176) +++ trunk/lib/prepend.php 2014-10-03 14:43:00 UTC (rev 9177) @@ -81,8 +81,7 @@ function DebugTimer() { $this->_start = $this->microtime(); - if (function_exists('posix_times')) - $this->_times = posix_times(); + $this->_times = posix_times(); } /** @@ -106,10 +105,6 @@ 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'), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |