I would like to record the number of frames from the start of an event to the end, possibilities?

just to mention that, depending on what you are aiming to achieve… there is very likely to be a way to notify the end of your event, rather than trying to time the length of your event exactly… this would be much easier, performance efficient and framerate independent