Each individual state mandates the hours required for a course. These times are tracked automatically and reported to the state. Once you meet your state’s requirement, you will be eligible to sit for the course final and then the state license exam. 
Note: If you are getting licensed in one of the states that requires you meet time requirements, you will not be able to take the course final and receive credit until you have spent the assigned amount of time in the course.