The phrase that indicated a lost in thought feel is the "Midnight shakes the memory". It means that his train of thought is going double time in the dark or at night.
One reason is because u will be willing to learn in the comfort of ur own home and wont have to travel every morning