Time::getMillisecondCounter


#1

Hi,

I’d be nice if the both getMillisecondCounter and getMillisecondCounterHiRes were using the same time origin (it does in Windows, but not on Linux)
I’m using getMillisecondCounterHiRes in one of my component, and waitForMillisecondCounter, and this code was struck in, what looks like from user’s POV, an infinite loop.

For those searching the forum, the workaround is "uint32 offset = (uint32)getMillisecondCounterHiRes() - getMillisecondCounter(); waitForMillisecondCounter(destInDouble - offset);"
Beware, this only works just before calling waitForMsCounter


#2

Thanks - I’ll change it to make sure it all uses the same time-base…