ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.1 by root, Mon Nov 12 07:58:13 2007 UTC vs.
Revision 1.3 by root, Mon Nov 12 08:03:31 2007 UTC

39argument of name C<loop> (which is always of type C<struct ev_loop *>) 39argument of name C<loop> (which is always of type C<struct ev_loop *>)
40will not have this argument. 40will not have this argument.
41 41
42=head1 TIME AND OTHER GLOBAL FUNCTIONS 42=head1 TIME AND OTHER GLOBAL FUNCTIONS
43 43
44Libev represents time as a single floating point number. This type is 44Libev represents time as a single floating point number, representing the
45(fractional) number of seconds since the (POSIX) epoch (somewhere near
46the beginning of 1970, details are complicated, don't ask). This type is
45called C<ev_tstamp>, which is what you should use too. It usually aliases 47called C<ev_tstamp>, which is what you should use too. It usually aliases
46to the double type in C. 48to the double type in C.
47 49
48=over 4 50=over 4
49 51
465state where you do not expect data to travel on the socket, you can stop 467state where you do not expect data to travel on the socket, you can stop
466the timer, and again will automatically restart it if need be. 468the timer, and again will automatically restart it if need be.
467 469
468=back 470=back
469 471
470=head2 ev_periodic 472=head2 ev_periodic - to cron or not to cron it
471 473
472Periodic watchers are also timers of a kind, but they are very versatile 474Periodic watchers are also timers of a kind, but they are very versatile
473(and unfortunately a bit complex). 475(and unfortunately a bit complex).
474 476
475Unlike ev_timer's, they are not based on real time (or relative time) 477Unlike ev_timer's, they are not based on real time (or relative time)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines