in reply to MIDI time elapsed stat

Perhaps you can use the score method of MIDI.
score: a structure of notes like an event structure, but where notes are represented as single items, and where timing of items is absolute from the beginning of the track, instead of being represented in delta-times.