It might have been minutes or hours that he slept, and he had no way of knowing which.
He didn't have a way of knowing whether he had slept minutes or hours.