From 257f7613a037374cf15488b60cc5cf5150253280 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 13 May 2013 11:54:18 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20temps=20total=20de=20g=C3=A9n?= =?UTF-8?q?=C3=A9ration=20de=20la=20page=20dans=20les=20infos=20de=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_debug_alternc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_debug_alternc.php b/bureau/class/m_debug_alternc.php index 15601ac4..60cc1997 100644 --- a/bureau/class/m_debug_alternc.php +++ b/bureau/class/m_debug_alternc.php @@ -28,6 +28,7 @@ class m_debug_alternc { var $status=false; var $nb_sql_query=0; var $tps_sql_query=0; + var $generation_started=null; /*---------------------------------------------------------------------------*/ /** Constructor @@ -39,6 +40,7 @@ class m_debug_alternc { } $this->nb_sql_query=0; $this->tps_sql_query=0; + $this->generation_started=microtime(true); } function activate() { @@ -63,9 +65,12 @@ class m_debug_alternc { if ( $cuid!=2000 ) return false; if ( ! $this->status ) return false; + $generation_time = (microtime(true) - $this->generation_started) * 1000; + echo "
"; echo "
";
-    echo "+++ BEGIN Debug Mode+++\n\n";
+    echo "+++ BEGIN Debug Mode+++\n";
+    echo "Total generation time : $generation_time ms\n";
     print_r("\n--- Total SQL Query : ".$this->nb_sql_query." req / ".$this->tps_sql_query." ms ---\n");
     print_r($this->infos);
     echo "\n\n--- GET ---\n";