records and plays for a given amount of time