? .patch ? files ? mw.patch ? tmp.patch ? sites/default/files Index: includes/database/database.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database/database.inc,v retrieving revision 1.1 diff -u -F^f -p -r1.1 database.inc --- includes/database/database.inc 21 Aug 2008 19:36:36 -0000 1.1 +++ includes/database/database.inc 23 Aug 2008 12:01:08 -0000 @@ -1013,8 +1013,11 @@ class DatabaseStatement extends PDOState $this->setFetchMode($options['fetch']); } } + $start = microtime(); + $executed = parent::execute($args); + $this->duration = (microtime() - $start) * 1000; $this->dbh->lastStatement = $this; - return parent::execute($args); + return $executed; } /**