Implement JNI part of polling and timing functions (except
libusb_set_pollfd_notifiers)