Example #1
0
 public static function time($msg)
 {
     if (self::$timeCounter == null) {
         self::$timeCounter = microtime(true);
     }
     header("X-LOG-TIME-" . ++self::$messageCounter . ": " . "[" . (microtime(true) - self::$timeCounter) . "] " . $msg);
     self::$timeCounter = microtime(true);
 }