… | |
… | |
124 | this argument. |
124 | this argument. |
125 | |
125 | |
126 | =head2 TIME REPRESENTATION |
126 | =head2 TIME REPRESENTATION |
127 | |
127 | |
128 | Libev represents time as a single floating point number, representing |
128 | Libev represents time as a single floating point number, representing |
129 | the (fractional) number of seconds since the (POSIX) epoch (in practise |
129 | the (fractional) number of seconds since the (POSIX) epoch (in practice |
130 | somewhere near the beginning of 1970, details are complicated, don't |
130 | somewhere near the beginning of 1970, details are complicated, don't |
131 | ask). This type is called C<ev_tstamp>, which is what you should use |
131 | ask). This type is called C<ev_tstamp>, which is what you should use |
132 | too. It usually aliases to the C<double> type in C. When you need to do |
132 | too. It usually aliases to the C<double> type in C. When you need to do |
133 | any calculations on it, you should treat it as some floating point value. |
133 | any calculations on it, you should treat it as some floating point value. |
134 | |
134 | |
… | |
… | |
4882 | |
4882 | |
4883 | =item application |
4883 | =item application |
4884 | |
4884 | |
4885 | In this document, an application is whatever is using libev. |
4885 | In this document, an application is whatever is using libev. |
4886 | |
4886 | |
|
|
4887 | =item backend |
|
|
4888 | |
|
|
4889 | The part of the code dealing with the operating system interfaces. |
|
|
4890 | |
4887 | =item callback |
4891 | =item callback |
4888 | |
4892 | |
4889 | The address of a function that is called when some event has been |
4893 | The address of a function that is called when some event has been |
4890 | detected. Callbacks are being passed the event loop, the watcher that |
4894 | detected. Callbacks are being passed the event loop, the watcher that |
4891 | received the event, and the actual event bitset. |
4895 | received the event, and the actual event bitset. |