public function run()
    {
        $this->timer = new Timer($this->name, true);

        if (!is_callable($this->callback)) {
            throw new \RuntimeException('No callback provided');
        }

        call_user_func($this->callback);

        $this->timer->tick();
    }
public function run()
    {
        $this->timer = new Timer($this->name, true);

        if (!is_callable($this->callback)) {
            throw new \RuntimeException('No callback provided');
        }

        call_user_func($this->callback);

        $this->timer->tick();
    }
public function run ( ) { $ this -> timer = new Timer ( $ this -> name , true ) ; if ( ! is_callable ( $ this -> callback ) ) { throw new \ RuntimeException ( 'No callback provided' ) ; } call_user_func ( $ this -> callback ) ; $ this -> timer -> tick ( ) ; }
Execute the callback function
Execute the callback function