Rory McIlroy has hinted there is a timescale on his golf career after watching Tiger Woods, 49, succumb to injury.