TimedQueue: method for getting time