File indexing completed on 2024-12-22 05:33:23

0001 <?php
0002 
0003 /*
0004  *   GFX 4
0005  * 
0006  *   support: happy.snizzo@gmail.com
0007  *   website: http://www.gfx3.org
0008  *   credits: Claudio Desideri
0009  *   
0010  *   This software is released under the MIT License.
0011  *   http://opensource.org/licenses/mit-license.php
0012  */ 
0013 
0014 /*
0015  * Class used to do time measurement.
0016  */
0017 class ETime {
0018   
0019   private static $time_start;
0020   
0021   public static function measure_from(){
0022     ETime::$time_start = microtime(true);
0023   }
0024   
0025   public static function measure_to() { 
0026     $time_end = microtime(true);
0027     $time = $time_end - ETime::$time_start;
0028     return $time;
0029   }
0030   
0031 }
0032 
0033 ?>