MINOR: poller: move the call of tv_update_date() back to the pollers

The reason behind this will be to be able to compute a timeout when
busy polling.
diff --git a/include/common/time.h b/include/common/time.h
index b9efd71..c3f8f5c 100644
--- a/include/common/time.h
+++ b/include/common/time.h
@@ -586,7 +586,6 @@
  */
 static inline void tv_leaving_poll(int timeout, int interrupted)
 {
-	tv_update_date(timeout, interrupted);
 	measure_idle();
 	prev_cpu_time  = now_cpu_time();
 	prev_mono_time = now_mono_time();
diff --git a/src/ev_epoll.c b/src/ev_epoll.c
index a9f96ab..272ded2 100644
--- a/src/ev_epoll.c
+++ b/src/ev_epoll.c
@@ -150,6 +150,7 @@
 	tv_entering_poll();
 	activity_count_runtime();
 	status = epoll_wait(epoll_fd[tid], epoll_events, global.tune.maxpollevents, wait_time);
+	tv_update_date(wait_time, status);
 	tv_leaving_poll(wait_time, status);
 
 	thread_harmless_end();
diff --git a/src/ev_kqueue.c b/src/ev_kqueue.c
index dc1310c..a894f66 100644
--- a/src/ev_kqueue.c
+++ b/src/ev_kqueue.c
@@ -143,6 +143,7 @@
 			kev,       // struct kevent *eventlist
 			fd,        // int nevents
 			&timeout); // const struct timespec *timeout
+	tv_update_date(delta_ms, status);
 	tv_leaving_poll(delta_ms, status);
 
 	thread_harmless_end();
diff --git a/src/ev_poll.c b/src/ev_poll.c
index ce5e38f..40bde87 100644
--- a/src/ev_poll.c
+++ b/src/ev_poll.c
@@ -198,6 +198,7 @@
 	tv_entering_poll();
 	activity_count_runtime();
 	status = poll(poll_events, nbfd, wait_time);
+	tv_update_date(wait_time, status);
 	tv_leaving_poll(wait_time, status);
 
 	thread_harmless_end();
diff --git a/src/ev_select.c b/src/ev_select.c
index f435813..f9b1215 100644
--- a/src/ev_select.c
+++ b/src/ev_select.c
@@ -172,6 +172,7 @@
 			writenotnull ? tmp_evts[DIR_WR] : NULL,
 			NULL,
 			&delta);
+	tv_update_date(delta_ms, status);
 	tv_leaving_poll(delta_ms, status);
 
 	thread_harmless_end();