Add time debug for each Xquery
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 16:24:21 +0000 (16:24 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 16:24:21 +0000 (16:24 +0000)
includes/shellcmd.php

index 27002d3fd2d70acee2927a6da5458eb03c1a0df0..fd6edb50c48cd5ffdb3010cc3f97ee0e8d877ef2 100644 (file)
@@ -74,9 +74,13 @@ class Shell
        function exec($command)
        {
                global $viewsvn;
-               $viewsvn->debug("exec(): $command");
+               
+               $start = microtime();
                
                exec($command, $output);
+               
+               $viewsvn->debug("exec(" . $viewsvn->funct->fetch_microtime_diff($start) . "): $command");
+               
                return $output;
        }
 }