Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Reserved Variables

Quick question...I am wanting to add the variable 'Elapsed Time' to a course so we can capture how long a learner is in the course. 'Elapsed Time' is listed under 'Reserved Variables,' however when I add the action to 'modify variable' it is not available for me to choose.
I've tried this in Lectora 18 and 19 with the same results. I've never used this variable before so I'm reaching out to anyone who has.
What am I doing wrong?
Answers
-
It is a variable already set up for you - so it is already initiated. To see the value of it, you can set up an action to change the contents of a text block and swap in the ElapsedTime Variable instead. (Target your text block, value is ElapsedTime)- Adam Cain0
-
How would it get to an LMS such as Saba? Like how would my LMS team be able to tell that a learner spent X amount of minutes in the course?
My LMS team is telling me I need to insert (specifically) the variable cmi.core.session_time to report to the LMS (I found 'Elapsed Time' while researching and it sounded the same).0 -
Aren't there any error messages? Sending the session_time is one of the most basic Scorm requirements. Lectora should do it all automatically. If it didn't there should be a Scorm error. I tested Lectora 19 with moodle and it worked. I've never had any issues with it.1
-
I have to meet with the LMS team (Saba) today to get more details. As far as I know there are no error messages. All I know is they are requesting I insert an action into the course for sending cmi.core.session_time and I can't figure out how or what they are talking about.
If it is in there automatically, I guess the question is how can they see that data? Our LMS team wants to be able to tell how long a learner was in a course and with early tests, the numbers don't match.0 -
The file "scofunctions.js" that is part of the scorm package contains the function "computeTime" that calculates the time a user has spent in the course and sets "cmi.core.session_time" to this value. The function is executed regularly, i.e. whenever the course might be closed.
The session time isn't displayed by the LMS or at least not by the systems I know. It is added to cmi.core.total_time, the "Sum of all of the learner’s session times accumulated in the current learner attempt". This is a value that should be displayed by the LMS and is the time a user has spent in the course from "not attempted" to "completed", not matter how many sessions have been done to reach completion.
If you wanted to set the session_time yourself, it can be done with a Run javascript action. For this you need the time in a format "hh:mm:ss.0". You could put it in a variable, e.g. "mytime" with two actions:
Action: Modify variable
Target: mytime
Type: Set equal to
Value: VAR(ElapsedTime)
Action: Modify variable
Target: mytime
Type: Add to variable
Value: .0
Then Run javascript:LMSSetValue( "cmi.core.session_time",Varmytime.getValue());
But this will only work if Lectoras automatic functions do not work at all. Otherwise it may be overwritten by Lectoras own logic. And all my tests say it works...2 -
I appreciate that timk. I have no doubt Lectora works, I'm just trying to figure out *how* it works and how I can have that conversation with my LMS/Saba team as this is unchartered territory for me, even after working in Lectora for 14 years.
This is one of those situations where I don't know what I don't know.0
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 343 CenarioVR®
- 204 CenarioVR Discussions
- 139 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products