From: <var...@us...> - 2014-11-10 19:36:01
|
Revision: 9301 http://sourceforge.net/p/phpwiki/code/9301 Author: vargenau Date: 2014-11-10 19:35:50 +0000 (Mon, 10 Nov 2014) Log Message: ----------- Type compatibility Modified Paths: -------------- trunk/lib/prepend.php Modified: trunk/lib/prepend.php =================================================================== --- trunk/lib/prepend.php 2014-11-09 20:00:47 UTC (rev 9300) +++ trunk/lib/prepend.php 2014-11-10 19:35:50 UTC (rev 9301) @@ -74,16 +74,19 @@ /** * @param string $which One of 'real', 'utime', 'stime', 'cutime', 'sutime' - * @param bool $now + * @param array $now * @return float Seconds. */ - function getTime($which = 'real', $now = false) + function getTime($which = 'real', $now = array()) { - if ($which == 'real') + if ($which == 'real') { return $this->microtime() - $this->_start; + } if (isset($this->_times)) { - if (!$now) $now = posix_times(); + if (empty($now)) { + $now = posix_times(); + } $ticks = $now[$which] - $this->_times[$which]; return $ticks / $this->_CLK_TCK(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |