You wouldn't control the time client-side, you would simply provide a counter and a thing that warns them when they are running out of time. You have a timestamp taken when the page loads...