sometimes the 'page executed time' is less than the sum of the query execution times. can anyone spot the problem?

CommentFileSizeAuthor
#2 20040708.devel-timer.patch448 bytesBart Jansens
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bart Jansens’s picture

I remember seeing this problem before, iirc the problem is in drupal_timer:

$stop = explode(" ", microtime());
$diff = round(($stop[0] - $timer[0])*1000, 2);
return "Page execution time was $diff ms. ";

This ignores the value of $stop[1], so when the page takes longer than a second to execute, the counter will be wrong.

Bart Jansens’s picture

FileSize
448 bytes

fix attached.

moshe weitzman’s picture

Anonymous’s picture