Track time without and LMS

How do I track the amount of time in a course without an LMS? Users need to spend a minimum amount of time in course.