Forum Discussion
Adding a digital clock with HH:MM:SS displaying to storyline
The mechanism used is actually not too complicated, We have a layer which is exactly 1 sec in duration. The layer executes the JavaScript above to update the clock and then "toggles" a true/false flag and closes. The base layer monitors the flag and when it detects a change it shows our clock update layer again...
Hence you get a tight loop with the update layer opening and closing in 1 sec intervals....
If you wanted to time stamp something - as in your sample display it should be fairly straightforward (how many times have I said that!)... If you trigger an event at a given point the variables H, M, and S, have the time you need - use them to set three new variables and you have the time that event occurred.
Let me know how that goes - I would be quite interested!