Display total project time using new elapsed time variables
Dec 02, 2021
Hi!
Ive updated Storyline and love that there are new features with the elapsed project / slide / scene built in variables.
I saw a few tutorials on how to do a few things, ie mark a course as complete when a certain time reached, or do something (ie show a layer) once a cetain time is reached. But there was a tutorial missing for one thing mentioned could be done.
Is there a way to display the elapsed time in seconds or minutes?
For example, an elearn has a duration of 30mins, and id love to display at the top the time spent so far as a count up or count down.
I tried inserting it like this... "Elapsed time: %Project.ElapsedTime% / 30mins" however the project elapsed time counts in milliseconds (in the thousands) whic is distracting. Is there a way i can use other variables or triggers to convert this counting so it displayed in seconds or minutes?
20 Replies
You can use some javascript something like this should work (sorry not tested):
Needs variables timeM that is set from inbuilt variable and time_Display that you show on your Timer. You would need to call each second for this to update in real time
Hi Phil,
I am planning to use the elapsed time to report back the time spent on each section. Is it possible to access the time spent in each scene from another scene? In my case, I want to total up the time spent in each section once the user completes the activity. So i need to be able to access each scenes total duration from the end slide.
Is that something that may be possible with the latest release?
Thanks for your help!
-Matt
Hi there.
My question is similar to Matt's. I want to know where to access the information on time spent per slide.
Thank you for your help.
Hi, Matt and Faffie.
Thank you for reaching out!
While you can't access the Scene.ElapsedTime or Slide.ElapsedTime values from a different scene/slide, one suggestion would be to assign it to a variable, which you would then display on your end slide.
This will look differently depending on how you set up the course (is the navigation restricted? How many slides are in a scene? Does the user click a button to go to another scene? etc.), but as examples:
I hope this helps!
Hi everyone,
I don't know if this will help, but it is possible to modify the numbers with other variables to make the numbers a little more representative (why not for a report for example).
It's not perfect, but maybe it can help.
I just created 2 new variables "minutes" and "seconds" and created a mathematical division with the triggers.
My English is not very good, the screenshot will probably be better ๐
Good day to all.
I am trying to hide the button that completes the course until a video (hosted on Wistia) completes using the new built-in variable - Slide.ElapsedTime., but it is not working. The variable is changing, but the button does not appear. Has anyone been able to get something like this to work? I'd greatly appreciate any input!
My code is this:
Change the state of BTN Complete Course to Normal
When Slide.Elapsed Time changes
if Slide.ElapsedTime = 5000.
Hi, Glenda.
Can you try changing the condition to If Slide.ElapsedTime >= 5000 ?
Let me know if this works!
Thank you, Maria! That worked.
I created a timer on a slide master to track how long it takes a user to complete the quiz. It works great the first time through, but I cannot figure out how to reset it if the user wishes to take the quiz again. I tried setting Scene.ElapsedTime to zero, but my display variables rush through the first few seconds to get back to the total elapsed time for the scene. Does anyone have a suggestion? I attached an abbreviated version of the assessment and marked the correct answers. TYIA!
Hi, Jonathan!
Have you found a way to reset elapsed time variables?
Maria,
Is there a way to reset the elapsed time variables?
I created a timer on a slide master to track how long it takes a user to complete the quiz. It works great the first time through, but I cannot figure out how to reset it if the user wishes to take the quiz again. I tried setting Scene.ElapsedTime to zero, but my display variables rush through the first few seconds to get back to the total elapsed time for the scene. Does anyone have a suggestion? I attached an abbreviated version of the assessment below and marked the correct answers. TYIA!
Hello Glenda,
I haven't tried it, but I think this link will help you: https://community.articulate.com/discussions/articulate-storyline/resetting-slide-elapsedtime-with-a-trigger
I guess it is possible to reset them as with the other variables ๐
Hopefully this will have been helpful to you.
Thank you, Jonathan.
Hi Glenda, thanks for the example SL file, I was struggling myself to create the timer.
Regarding the reset: you can't reset the Scene.ElapsedTime triggers, but you can reset MinElapsedTotal + LeadingZeroSeconds + SecElapsedInMin and your solution still works :)
(at least on a Slide.ElapsedTime level)
Maybe put it on the Reset Button?
Thanks again!
Thanks, Vanda!
I'll give that a try!
Any way to resume project elapsed time if a learner exits the course and relaunches? It looks like the project elapsed time currently resets in this scenario.
Hi Kari,
I can confirm that the elapsed time variables will reset each time a learner exits a course. This is the expected behavior for these built-in variables right now. I'm curious to see if there is a way to retain the value of the project elapsed time variable using Javascript. For this, I'll let members of the community chime in so they can share their experiences!
Hello everyone! That's an interesting comment.
There are three possible options I can think of:
I've already tested 2 and 3 successfully, it's interesting. And the advantage of solution 3 is that you can eventully display the spreadsheet values in Storyline (if you want to display them).
Hope this helps. Have a nice day ๐
I tried sending the elapsed time variable to a custom variable but I'm still having issues getting it to continue on relaunch. I'm curious, how are people setting up course completion with a time requirement (1 hour). Currently, I am allowing users to get to a acknowledgement screen to complete the course when the project time elapsed is 1 hour. That doesn't work if someone exits and relaunches the course. Is the only way to do this with JavaScript? Am I missing something. It seems strange that Articulate wouldn't account for this somehow, as it is a pretty common scenario for developing training.