The time you get can be stored in a global (Lua) variable. This can be consulted later on by a different trigger. Then by subtracting one from the other you know how much time elapsed.
When I initially made this post I was doing it completely differently, because of a problem I encountered (it was tracking MOB damage) the only way I could solve it was to make 7+ triggers to activate (basically every time I did damage) the the one I wanted to time (the one that recorded damage) then I had to make it so that trigger deactivated immediately after it recorded damage.
Because of that I don't know how I can track time anymore but that might just be because of my inexperience.
I haven't been able to find anything on this, maybe I'm not looking hard enough.
I'm wanting to track the time between a trigger activating and turning off and the only way I know how to do it is to use variables to track the lines in between it activating and disabling but I don't think that would be very accurate.
So I was wondering if there is a script function maybe that will accurately keep track of time.
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.