/** * Initialize the profiler * * Set the {@link profiler::$globalStart} time, random {@link profiler::$profilerKey}, and instantiate a {@link profiler::$ghostNode} * * @return null doesn't return anything. */ public static function init() { if (self::$init) { return; } self::$globalStart = microtime(true); self::$profilerKey = md5(rand(1, 1000) . 'louddoor!' . time()); self::$ghostNode = new ProfilerGhostNode(); self::$init = true; }