In `event_poll` calculate the time in nanoseconds