Roughly two hours.
That timer runs on the Chao Garden's own clock, which is tied to how long the garden has been active rather than how long you're personally watching it. So leaving the game on the garden screen for a while, or coming back later, both count toward the wait.