public function sleep($s)
    {
        static $interval = 0.2;
        $n = $s / $interval;

        for ($i = 0; $i < $n; ++$i) {
            if ($this->shutdown) {
                return false;
            }

            \usleep($interval * 1000000);
        }

        return true;
    }
public function sleep($s)
    {
        static $interval = 0.2;
        $n = $s / $interval;

        for ($i = 0; $i < $n; ++$i) {
            if ($this->shutdown) {
                return false;
            }

            \usleep($interval * 1000000);
        }

        return true;
    }
public function sleep ( $ s ) { static $ interval = 0.2 ; $ n = $ s / $ interval ; for ( $ i = 0 ; $ i < $ n ; ++ $ i ) { if ( $ this -> shutdown ) { return false ; } \ usleep ( $ interval * 1000000 ) ; } return true ; }
Delays the process execution for the given number of seconds
@param integer Sleep time in seconds
@return boolean Success
Delays the process execution for the given number of seconds