Repetition, expectation, and the perception of time