… | |
… | |
582 | (that is, the lowest time value larger than to the second argument). It |
582 | (that is, the lowest time value larger than to the second argument). It |
583 | will usually be called just before the callback will be triggered, but |
583 | will usually be called just before the callback will be triggered, but |
584 | might be called at other times, too. |
584 | might be called at other times, too. |
585 | |
585 | |
586 | NOTE: I<< This callback must always return a time that is later than the |
586 | NOTE: I<< This callback must always return a time that is later than the |
587 | passed C<now> value >>. Not even C<now> itself will do, it must be larger. |
587 | passed C<now> value >>. Not even C<now> itself will do, it I<must> be larger. |
588 | |
588 | |
589 | This can be used to create very complex timers, such as a timer that |
589 | This can be used to create very complex timers, such as a timer that |
590 | triggers on each midnight, local time. To do this, you would calculate the |
590 | triggers on each midnight, local time. To do this, you would calculate the |
591 | next midnight after C<now> and return the timestamp value for this. How you do this |
591 | next midnight after C<now> and return the timestamp value for this. How |
592 | is, again, up to you (but it is not trivial). |
592 | you do this is, again, up to you (but it is not trivial, which is the main |
|
|
593 | reason I omitted it as an example). |
593 | |
594 | |
594 | =back |
595 | =back |
595 | |
596 | |
596 | =item ev_periodic_again (loop, ev_periodic *) |
597 | =item ev_periodic_again (loop, ev_periodic *) |
597 | |
598 | |