Skip to content
Snippets Groups Projects
Commit ac4be4d7 authored by Piyush Mishra's avatar Piyush Mishra
Browse files

Minor: Edited the delta_time function for php5

parent 8cd4c12f
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,7 @@
// start timing Dokuwiki execution
function delta_time($start=0) {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec+(float)$sec)-((float)$start);
return microtime(true)-((float)$start);
}
define('DOKU_START_TIME', delta_time());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment