server: Only call gettimeofday once per poll loop.
diff --git a/server/timer.c b/server/timer.c
index d1c035b..2640dd8 100644
--- a/server/timer.c
+++ b/server/timer.c
@@ -156,7 +156,7 @@
     if (!expire->sec && !expire->usec)
     {
         /* special case: use now + period as first expiration */
-        gettimeofday( &timer->when, NULL );
+        timer->when = current_time;
         add_timeout( &timer->when, period );
     }
     else