… | |
… | |
165 | |
165 | |
166 | =item ev_tstamp ev_time () |
166 | =item ev_tstamp ev_time () |
167 | |
167 | |
168 | Returns the current time as libev would use it. Please note that the |
168 | Returns the current time as libev would use it. Please note that the |
169 | C<ev_now> function is usually faster and also often returns the timestamp |
169 | C<ev_now> function is usually faster and also often returns the timestamp |
170 | you actually want to know. |
170 | you actually want to know. Also interetsing is the combination of |
|
|
171 | C<ev_update_now> and C<ev_now>. |
171 | |
172 | |
172 | =item ev_sleep (ev_tstamp interval) |
173 | =item ev_sleep (ev_tstamp interval) |
173 | |
174 | |
174 | Sleep for the given interval: The current thread will be blocked until |
175 | Sleep for the given interval: The current thread will be blocked until |
175 | either it is interrupted or the given time interval has passed. Basically |
176 | either it is interrupted or the given time interval has passed. Basically |
… | |
… | |
213 | assert (("sorry, no epoll, no sex", |
214 | assert (("sorry, no epoll, no sex", |
214 | ev_supported_backends () & EVBACKEND_EPOLL)); |
215 | ev_supported_backends () & EVBACKEND_EPOLL)); |
215 | |
216 | |
216 | =item unsigned int ev_recommended_backends () |
217 | =item unsigned int ev_recommended_backends () |
217 | |
218 | |
218 | Return the set of all backends compiled into this binary of libev and also |
219 | Return the set of all backends compiled into this binary of libev and |
219 | recommended for this platform. This set is often smaller than the one |
220 | also recommended for this platform, meaning it will work for most file |
|
|
221 | descriptor types. This set is often smaller than the one returned by |
220 | returned by C<ev_supported_backends>, as for example kqueue is broken on |
222 | C<ev_supported_backends>, as for example kqueue is broken on most BSDs |
221 | most BSDs and will not be auto-detected unless you explicitly request it |
223 | and will not be auto-detected unless you explicitly request it (assuming |
222 | (assuming you know what you are doing). This is the set of backends that |
224 | you know what you are doing). This is the set of backends that libev will |
223 | libev will probe for if you specify no backends explicitly. |
225 | probe for if you specify no backends explicitly. |
224 | |
226 | |
225 | =item unsigned int ev_embeddable_backends () |
227 | =item unsigned int ev_embeddable_backends () |
226 | |
228 | |
227 | Returns the set of backends that are embeddable in other event loops. This |
229 | Returns the set of backends that are embeddable in other event loops. This |
228 | is the theoretical, all-platform, value. To find which backends |
230 | is the theoretical, all-platform, value. To find which backends |