Replaced usage of Time::HiRes::time with AnyEvent->now