Scenario 2

Your Code

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

Code Example

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();
}