Fix maxTime api in EventLoop::run()