Forum Discussion
LanceSwigert
12 years agoCommunity Member
Timing how long an interaction takes.
So my courses have to be timed for credit. I have an interaction which include several slides and pathways. I want to be able to make sure that the participants spend a certain amount of time going ...
SamClark
12 years agoCommunity Member
I've extended Steve's code to add another variable that records elapsed seconds using the JavaScript Date() in addition to counting timer intervals. There shouldn't be much difference in the two unless other Storyline JavaScipts block the timer interval here and there. Maybe this would add up to something, maybe not, maybe accuracy doesn't matter in most situations. But using Date() doesn't cost anything additional, and you will get more accurate results.
This demo shows both counting along. You can simulate another JavaScript blocking the interval timer by clicking the "Busy" button once to view the cumulative difference.