Help for this page

Select Code to Download


  1. or download this
    if ($self->{times_round}++ < $self->{wait_this_many_times}) {
     return; # brake by counting loops
    }
    
  2. or download this
    $self->{timer} ||= time;
    if (time - $self->{timer} < $self->{min_interval}) {
     return; # brake by counting seconds
    }
    $self->{timer} = time;