… | |
… | |
1229 | you suspect event processing to be delayed and you I<need> to base the |
1229 | you suspect event processing to be delayed and you I<need> to base the |
1230 | timeout on the current time, use something like this to adjust for this: |
1230 | timeout on the current time, use something like this to adjust for this: |
1231 | |
1231 | |
1232 | ev_timer_set (&timer, after + ev_now () - ev_time (), 0.); |
1232 | ev_timer_set (&timer, after + ev_now () - ev_time (), 0.); |
1233 | |
1233 | |
1234 | If the event loop is suspended for a long time, one can also force an |
1234 | If the event loop is suspended for a long time, you can also force an |
1235 | update of the time returned by C<ev_now ()> by calling C<ev_now_update |
1235 | update of the time returned by C<ev_now ()> by calling C<ev_now_update |
1236 | ()>. |
1236 | ()>. |
1237 | |
1237 | |
1238 | =head3 Watcher-Specific Functions and Data Members |
1238 | =head3 Watcher-Specific Functions and Data Members |
1239 | |
1239 | |