Eden got it right. By time, it's usually say a 30 minute race for beginners. After the first lap the officials figure out how many more laps can be fit into the time frame, and start counting down...