+ timeval now, timeout;
+ gettimeofday(&now, 0);
+ timeout = user_timer - now;
+
+ if (user_timeout && (user_timer <= now))
+ return 0;
+
+ int to = 0;
+ if (user_timeout)
+ to = timeout.tv_sec * 1000 + timeout.tv_usec / 1000;
+
+ ret = processOneEvent(to, res, dict);