/**
* Runs the routine.
*
* This checks if the appriorate amount of time has passed and emits the
* awake signal if so.
*
* @return boolean
*/
public function routine(\XPSPL\Routine $routine = null)
{
if ($this->get_idle()->has_time_passed()) {
$routine->add_signal($this);
$this->get_idle()->set_time($this->_time);
}
$routine->add_idle($this);
return true;
}