Timer::stop(); $this->setData('ms',round(Timer::diff() * 1000))->setData('status',self::STATUS_COMPLETED)->save(); } catch (\Exception $e) { Timer::stop(); $this->setData('ms',round(Timer::diff() * 1000)) ->setData('status',self:...
*/publicfunction run() {$this->setData('run_at',date('Y-m-d H:i:s'))->setData('status',self::STATUS_RUNNING)->save();Timer::start();try{$class=$this->getData('class');$method=$this->getData('method');if(!class_exists($class))thrownew\Exception(sprintf('Class "%s" not found!
/// Set a delay timer which will expire when the chosen event (+/- optional offset) occurs Wait { #[clap( help = "Choose an event from which to base your delay.", short = 'e', long = "event", possible_values = &["sunrise", "sunset", "civil_dawn", "civil_dusk", "naut...