public static function markTime($markerId) { list($usec, $sec) = explode(" ", microtime()); $time = (double) $usec + (double) $sec; if (!isset($GLOBALS['qr_time_bench'])) { $GLOBALS['qr_time_bench'] = array(); } $GLOBALS['qr_time_bench'][$markerId] = $time; if (!self::$timeBenchmarkStarted && $markerId != 'start') { self::$timeBenchmarkStarted = true; $GLOBALS['qr_time_bench']['start'] = $time; } }