Time perception, rhythm entrainment, and rhythm maintenance