From: Tor Lillqvist <tml@ik...> - 2008-07-21 09:18:55
> Is there any suggestion on the missing struct tms in sys/times.h? Seems it
> is required by clapack.
The point is not just that struct tms is missing, but what the code
does with it. struct tms is used by the times() UNIX system call, as
far as I can see. times() returns CPU time usage for the calling
process and its child processes. That system call is not available on
Windows as such (eh, why would it, Windows isn't UNIX) and not in the
Microsoft C library either (which is what MinGW-built code uses, and
which *does* contain *some* UNIX-inspired functions like open(),
read() and write()).
So you need to port the code to use Windows functionality instead.
Check GetProcessTimes(), which seems to be relatively equivalent.