From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a7a9a65dd0529420 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-18 17:07:32 PST Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!peltz From: peltz@cerl.uiuc.edu (Steve Peltz) Newsgroups: comp.unix.osf.osf1 Subject: Re: Alpha system clock calls Date: 18 Jul 1994 22:53:52 GMT Organization: CERL - University of Illinois at Urbana-Champaign Message-ID: <30f160$h4g@vixen.cso.uiuc.edu> References: <301912$5te@masala.cc.uh.edu> <1994Jul18.180219.17019@decvax.dec.com> NNTP-Posting-Host: unicorn.cerl.uiuc.edu In article <1994Jul18.180219.17019@decvax.dec.com>, Jeffrey M. Denham wrote: >getclock: Obsolete POSIX.4 (1b) Draft 9 routine. Gets the system time. > Front end to gettimeofday. gettimeofday() is indicated as obsolete, and that you should use getclock() (which is indicated as "Trial Usage")! At least in V2.0 Rev. 240 and before, the constant TIMEOFDAY which you are supposed to give it is not correctly defined in the header files. Had to do with either having or not having some POSIX symbol defined already. It ought to work as advertised without doing anything special or using any special compiler flags. Other than that, getclock() works fine for me. Be sure you are using the correct structure for the return, as there are about 8 different, incompatible time structures for the 10 or so different methods of doing timers, getting process times and time of day/elapsed time/date-and-time/etc.