From: Mike Naberezny Date: Sun, 29 Mar 2009 20:28:06 +0000 (-0700) Subject: Fix usage of Horde_Support_Timer. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4adfd3e11b4d9b36b61386dc83101d3d309c9d58;p=horde.git Fix usage of Horde_Support_Timer. --- diff --git a/framework/Db/lib/Horde/Db/Migration/Base.php b/framework/Db/lib/Horde/Db/Migration/Base.php index b569cdd0f..34b894493 100644 --- a/framework/Db/lib/Horde/Db/Migration/Base.php +++ b/framework/Db/lib/Horde/Db/Migration/Base.php @@ -34,7 +34,11 @@ class Horde_Db_Migration_Base * @var integer */ public $version = null; - + + /** + * Database connection adapter + * @var Horde_Db_Adapter_Abstract + */ protected $_connection; @@ -77,9 +81,9 @@ class Horde_Db_Migration_Base // benchmark method call $t = new Horde_Support_Timer(); - $t->start(); + $t->push(); $result = call_user_func_array(array($this->_connection, $method), $args); - $time = $t->finish(); + $time = $t->pop(); // print stats $this->say(sprintf("%.4fs", $time), 'subitem'); @@ -112,9 +116,9 @@ class Horde_Db_Migration_Base $result = null; $t = new Horde_Support_Timer(); - $t->start(); + $t->push(); $result = $this->$direction(); - $time = $t->finish(); + $time = $t->pop(); if ($direction == 'up') { $this->announce("migrated (" . sprintf("%.4fs", $time) . ")");