Subject: RE: using times()
From: [email-masked] (Sergey Okhapkin)

21 Sep 1997 22:06:29 -0700
Message-ID: <01BCC732.3C3AA5E0.cygnus.gnu-win32@sos>
To: "[email-masked]" <[email-masked]>,
        "'John Mamer'"
	 <[email-masked]>

John Mamer wrote:
> Ive encountered a problem in trying to call the times()
> function under gnuwin32.  My understanding of the times function

times() call works on NT only. The underlying syscall GetProcessTimes() 
unimplemented on windows 95. The output of your examle looks the following 
on my box (NT4.0 SP3):

e:\usr\src\tests>times.exe
Before calling times()
        Unsigned:                  Double:
User:     4199328                        4199328.000
System:   0                        0.000
Children: 37810832                        37810832.000
After calling times
        Unsigned:                  Double:
User:     80                        80.000
System:   60                        60.000
Children: 0                        0.000
....returned from times: unsigned: 3489928 double:3489928.000000
Before calling times()
        Unsigned:                  Double:
User:     80                        80.000
System:   60                        60.000
Children: 0                        0.000
After calling times
        Unsigned:                  Double:
User:     90                        90.000
System:   70                        70.000
Children: 0                        0.000
....returned from times: unsigned: 3490198 double:3490198.000000
 Elapsed time calculation read from otime.tms_utime:
 Start: 80.000000    End: 90.000000   Elapsed time: 10.000000

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".