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

Thorsten Otto admin at tho-otto.de
Tue Jun 27 02:22:01 MSD 2017


On Montag, 26. Juni 2017 22:26:19 CEST David Henderson wrote:
> ’m with Miro, have it issue a warning as it’s non-obvious.

Why isn't that obvious? It is well known that gettimeofday() is an expensive 
function, not only in mintlib. But there isn't a real portable alternative to 
it.

> It’ll only annoy the -Werror guys who, frankly, ought to be annoyed anyway.

That is nonsense. Why don't you warn about using fopen then? It is also slow 
compared to other functions. The compiler shouldn't warn about usage of 
functions, when it can't provide alternatives.




More information about the Freemint-list mailing list