[Freemint-list] [MiNT] MiNTlib timing related functions behavior/performance (Thorsten Otto)

Miro Kropáček miro.kropacek at gmail.com
Tue Jun 27 02:34:33 MSD 2017


On 27 June 2017 at 08:22, Thorsten Otto <admin at tho-otto.de> wrote:

> Why isn't that obvious? It is well known that gettimeofday() is an
> expensive
> function, not only in mintlib.
>

You're missing one important point -- sometimes it's not obvious
gettimeofday() is *used* because it's buried somewhere deep in the code. So
unless you start grep'ing for this particular function or do profiling, you
may end up thinking that basically that piece of software is too much for
our small cute platform and move on. With the warning you'd see "Ah all
right, I must make sure this isn't called in the time critical section!".



-- 
MiKRO / Mystic Bytes
http://mikro.atari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170627/1b5b887d/attachment.html 


More information about the Freemint-list mailing list