src/Krexx.php
public static function timerMoment($string)
    {
        Pool::createPool();

        // Disabled?
        // We do not use the config settings here, because we do not have any
        // output whatsoever. The config settings are either on or off, during
        // the entire run, meaning the can not be changed (by normal api means)
        // from the outside.
        // We also do not use the static ForcedLog methods here, because they
        // are somewhat time costly.
        if (AbstractController::$analysisInProgress || Config::$disabledByPhp) {
            return;
        }

        AbstractController::$analysisInProgress = true;

        static::$pool->createClass('Brainworxx\\Krexx\\Controller\\TimerController')
            ->noFatalForKrexx()
            ->timerAction($string)
            ->reFatalAfterKrexx();

        AbstractController::$analysisInProgress = false;
    }
public static function timerMoment($string)
    {
        Pool::createPool();

        // Disabled?
        // We do not use the config settings here, because we do not have any
        // output whatsoever. The config settings are either on or off, during
        // the entire run, meaning the can not be changed (by normal api means)
        // from the outside.
        // We also do not use the static ForcedLog methods here, because they
        // are somewhat time costly.
        if (AbstractController::$analysisInProgress || Config::$disabledByPhp) {
            return;
        }

        AbstractController::$analysisInProgress = true;

        static::$pool->createClass('Brainworxx\\Krexx\\Controller\\TimerController')
            ->noFatalForKrexx()
            ->timerAction($string)
            ->reFatalAfterKrexx();

        AbstractController::$analysisInProgress = false;
    }
public static function timerMoment ( $ string ) { Pool :: createPool ( ) ; // Disabled? // We do not use the config settings here, because we do not have any // output whatsoever. The config settings are either on or off, during // the entire run, meaning the can not be changed (by normal api means) // from the outside. // We also do not use the static ForcedLog methods here, because they // are somewhat time costly. if ( AbstractController :: $ analysisInProgress || Config :: $ disabledByPhp ) { return ; } AbstractController :: $ analysisInProgress = true ; static :: $ pool -> createClass ( 'Brainworxx\\Krexx\\Controller\\TimerController' ) -> noFatalForKrexx ( ) -> timerAction ( $ string ) -> reFatalAfterKrexx ( ) ; AbstractController :: $ analysisInProgress = false ; }
Takes a "moment".

@api

@param string $string
Defines a "moment" during a benchmark test.
The string should be something meaningful, like "Model invoice db call".
Takes a moment .