Using the
hypeDocument.currentTimeInTimelineNamed('timelineName')
Function, you can get the exact time in milliseconds. Using: Math.round(2.5)
you can round that number up or down to the nearest number.
So, you could create a 500 second timeline (8 min, 20 seconds) and write in the value of where the timeline is at. You can detect the end of a drag by using this great example project from @JimScott:
At the end of an On Drag Action can a Timeline be triggered?
Then you would ‘round’ the value retrieved back from the currentTimeInTimelineNamed
function and insert that value in the innerHTML
of an object.
hypeDocument.getElementById("IDofCounter").innerHTML = DragEndTime