src/Event/EventManager.php
public function enableTicks(int $tickFreq = null) {

        if (is_null($tickFreq)) {
            $tickFreq = self::$tickFreq;
        }

        // Change ticking frequency
        self::$tickFreq = $tickFreq;
        self::$lastTick = microtime(true);

        // If we're already ticking, don't register again
        if (self::$ticking) {
            return true;
        }

        register_tick_function(['\Kaecyra\AppCommon\Event', 'tick']);
    }
public function enableTicks(int $tickFreq = null) {

        if (is_null($tickFreq)) {
            $tickFreq = self::$tickFreq;
        }

        // Change ticking frequency
        self::$tickFreq = $tickFreq;
        self::$lastTick = microtime(true);

        // If we're already ticking, don't register again
        if (self::$ticking) {
            return true;
        }

        register_tick_function(['\Kaecyra\AppCommon\Event', 'tick']);
    }
public function enableTicks ( int $ tickFreq = null ) { if ( is_null ( $ tickFreq ) ) { $ tickFreq = self :: $ tickFreq ; } // Change ticking frequency self :: $ tickFreq = $ tickFreq ; self :: $ lastTick = microtime ( true ) ; // If we're already ticking, don't register again if ( self :: $ ticking ) { return true ; } register_tick_function ( [ '\Kaecyra\AppCommon\Event' , 'tick' ] ) ; }
Enable periodic tick event

@param integer $tickFreq optional
@return boolean
Enable periodic tick event