Minor: Edited the delta_time function for php5

This commit is contained in:
Piyush Mishra 2011-03-21 19:18:34 +05:30
parent 8cd4c12f3e
commit ac4be4d7b5
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,7 @@
// start timing Dokuwiki execution // start timing Dokuwiki execution
function delta_time($start=0) { function delta_time($start=0) {
list($usec, $sec) = explode(" ", microtime()); return microtime(true)-((float)$start);
return ((float)$usec+(float)$sec)-((float)$start);
} }
define('DOKU_START_TIME', delta_time()); define('DOKU_START_TIME', delta_time());