Explorar o código

added usage doc for DebugExecutionTime

Piotr Labudda %!s(int64=9) %!d(string=hai) anos
pai
achega
85a15e071e
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      SE/se-lib/DebugExecutionTime.php

+ 9 - 0
SE/se-lib/DebugExecutionTime.php

@@ -1,5 +1,14 @@
 <?php
 
+/* usage:
+	Lib::loadClass('DebugExecutionTime');
+	$dbgExecTime = new DebugExecutionTime();
+	$dbgExecTime->activate();
+	$dbgExecTime->log('start');
+	...
+	$dbgExecTime->log('end');
+	$dbgExecTime->printDebug();
+*/
 class DebugExecutionTime {
 
 	private $_log = array();