Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!jtc From: jtc@van-bc.wimsey.bc.ca (J.T. Conklin) Newsgroups: comp.unix.sysv386 Subject: Re: problem with time command? (/bin/time) Message-ID: <1054@van-bc.wimsey.bc.ca> Date: 21 Dec 90 16:12:13 GMT References: <1471@beaudin.UUCP> Organization: UniFax Communications Inc., Vancouver, B.C., Canada Lines: 25 In article <1471@beaudin.UUCP> john@beaudin.UUCP (John Beaudin) writes: >On SCO Unix 3.2.2, the results of > $ /bin/time sleep 10 >are > real 5.9 > >The Csh time gives a value of 0:10. >Is /bin/time known to be incorrect? From this description, and a similar expirence on a Motorola MPC, I think that /bin/time is dividing the number of clock ticks as returned by the times() system call by 100 rather than 60. I think that the /bin/time source compiles in the value of HZ from . If the header file is incorrect, then the wrong value must have been compiled in. I don't know why csh gets it right. Perhaps it reads HZ from the environment? --jtc -- J.T. Conklin Toolsmith, Language Lawyer ...!{uunet,ubc-cs}!van-bc!jtc, jtc@wimsey.bc.ca