sys/times.h and mingw

David Faure faure at kde.org
Fri May 26 14:28:06 BST 2006


On Friday 26 May 2006 11:37, Thiago Macieira wrote:
> Paulo Jorge Guedes wrote:
> >It's not a typo, bigread.cpp calls times(). I don't know how much
> >times() is used across KDE though, and if we should worry with this for
> >Windows. A quick grep shows it's only used from bigread.cpp and
> >bigwrite.cpp so I guess we can #ifdef it.
> 
> Ok, now I understand what "bigread" means: it's probably throttling its 
> read behaviour so as to not clog the CPU. If it detects it's consuming 
> too much CPU time, it'll probably yield the processor.

The "probably" in there means you didn't read the code, right?

It's merely measuring the time spent in the load() method, there's definitely
no need to compile this test on Windows.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list