This function only needs to be ran once per second when epoll is
enabled because all it does then is send pings and check timeouts
which are calculated by the second.