Going back to using the old time and memory calculations/output.

This commit is contained in:
mark_story 2011-02-13 15:01:00 -05:00
parent 912927db18
commit 451b3fd18d
2 changed files with 4 additions and 2 deletions

View file

@ -140,7 +140,8 @@ class CakeHtmlReporter extends CakeBaseReporter {
echo "<strong>" . $result->errorCount() . "</strong> exceptions.";
echo "</div>\n";
echo '<div style="padding:0 0 5px;">';
echo '<p><strong>' . PHP_Timer::resourceUsage() . '</strong>';
echo '<p><strong>Time:</strong> ' . $result->time() . ' seconds</p>';
echo '<p><strong>Peak memory:</strong> ' . number_format(memory_get_peak_usage()) . ' bytes</p>';
echo $this->_paintLinks();
echo '</div>';
if (isset($this->params['codeCoverage']) && $this->params['codeCoverage']) {

View file

@ -87,7 +87,8 @@ class CakeTextReporter extends CakeBaseReporter {
', Failures: ' . $result->failureCount() .
', Exceptions: ' . $result->errorCount() . "\n";
echo PHP_Timer::resourceUsage();
echo 'Time: ' . $result->time() . " seconds\n";
echo 'Peak memory: ' . number_format(memory_get_peak_usage()) . " bytes\n";
if (isset($this->params['codeCoverage']) && $this->params['codeCoverage']) {
$coverage = $result->getCodeCoverageInformation();