its never said how long he was actually in the dial relative to the outside world all we know is ashildr put him in the dial and then sent him to gallifrey which was hidden at the furthest reaches of time. he couldve been in there the whole time or it couldve been just for him