Some courses legally require for you to be on the page for

Some courses legally require for you to be on the page for a certain amount of time. Others might want you to pass a test or view something is a certain amount of time. Are there timer functionalities where I can require either a minimum or a maximum amount of time elapse (either per page or overall on a course)? If not, can you please add this? How would I add this functionality? Thanks.