just to update this. So, it’s not so much a request, but more that I’m trying to figure out how to combine my midi recording scheme here: MidiMessageSequence -> MidiFile question with timestamps
this was the solution i came up with:
MainContentComponent::MainContentComponent(const Time& s)
{
sessionID = s;
DBG( sessionID.toISO8601(true) );
start_time_hi_res = Time::getMillisecondCounterHiRes() ;
startTimer(5 * 1000 ); // 5 seconds
setSize (600, 400);
}
void MainContentComponent::timerCallback() {
auto th = Time::getMillisecondCounterHiRes();
RelativeTime r( (th - start_time_hi_res) / 1000 );
auto i = sessionID + r;
DBG( i.toISO8601(true) );
}
//output:
2017-04-21T15:35:33.123-04:00
2017-04-21T15:35:38.244-04:00
2017-04-21T15:35:43.245-04:00
2017-04-21T15:35:48.246-04:00
2017-04-21T15:35:53.247-04:00