Why did the boy take the ruler to bed? He wanted to see how long he slept.

Why did the boy take the ruler to
bed?
He
wanted to see how long he slept.