Scenario 2
var maxTimeAllowed = GetValue ( "cmi.
" );
if (currentTimeSpan >= maxTimeAllowed)
{
// The learner has exceeded the maximum time alloted
// for the learner attempt, exit the SCO
exitSCO();
}
var maxTimeAllowed = GetValue ( "cmi.max_time_allowed"
);
if (currentTimeSpan >= maxTimeAllowed)
{
// The learner has exceeded the maximum time alloted
// for the learner attempt, exit the SCO
exitSCO();
}