How the Brain Measures Distance and Duration