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 ...
Bernovan-Soest
12 years agoCommunity Member
Hi Lance,
I'm not sure if this is what you're looking for but this is how I implemented it.
when the timeline starts I fire this JS:
var d = new Date();
var player = GetPlayer();
var start = player.SetVar("gsStart", d.getTime());
when the interaction has finished:
var d = new Date();
var player = GetPlayer();
var start = player.SetVar("gsEnd", d.getTime());
Using start and time you can perform the calculation you need.