[Freemint-list] MiNTlib timing related functions behavior/performance

Vincent Rivière vincent.riviere at freesbee.fr
Fri Jun 23 15:45:09 MSD 2017


On 23/06/2017 à 12:48, Miro Kropáček wrote:
> I've been bitten hard (again) by mintlib's gettimeofday() today.

Oh.

I remember that long ago, I ran a real-time program on FireBee (PmDoom?) 
and I saw that the LED of my Eiffel was constantly blinking. IIRC this 
was prior hardware NVRAM clock support, so defaulting to IKBD. But it 
was a proof that the user program accessed the hardware clock 
constantly, not a good thing, and certainly a performance killer.

Since then, IIRC we fixed EmuTOS to avoid accessing the hardware clock 
when unnecessary.

Really, that's only old memories. I don't remember the details. I just 
say that, if you are using EmuTOS, be sure to use a recent version. Of 
course the real problem should be tracked down, starting from MiNTLib.

-- 
Vincent Rivière


More information about the Freemint-list mailing list