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 12:17:45 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!src.dec.com!crl.dec.com!decvax.dec.com!denham From: denham@denham.zk3.dec.com (Jeffrey M. Denham) Subject: Re: Alpha system clock calls Message-ID: <1994Jul18.180219.17019@decvax.dec.com> Sender: usenet@decvax.dec.com (Usenet News System) Nntp-Posting-Host: denham.zk3.dec.com Reply-To: denham@zk3.dec.com (Jeffrey M. Denham) Organization: Digital Equipment Corporation X-Newsreader: mxrn 6.18-5 References: <301912$5te@masala.cc.uh.edu> Date: Mon, 18 Jul 1994 18:02:19 GMT In article <301912$5te@masala.cc.uh.edu>, tony@uh.edu (Tony Alvarez) writes: |> |>I have been trying to use the following system clock calls on OSF/1 ver 2.0: |> |> |>times(), gettimer(), getclock(), clock_gettime() Have you tried the man pages? They all have entries (the last in the realtime man pages). times: return process execution times. It seems to be working. gettimer: Obsolete POSIX.4 (1b) Draft 9 routine. Gets the time remaining on a timer set with abstimer or reltimer. This is a front end to set/getitimer. Should be working, but don't use it. getclock: Obsolete POSIX.4 (1b) Draft 9 routine. Gets the system time. Front end to gettimeofday. clock_gettimer: The up-to-date realtime function to read the system clock. This lives in librt.a. You have to load the OSFRTDEV200 subset to get it. |>The first two return "0" in all fields, getclock() seems to work, |>and haven't found the library containing clock_gettime(). I looked |>over the header files in enough detail to make sure that the arguments |>matched properly, and tried all libraries that seemed likely to have |>anything to do with clock_gettime(). They should all be working if you call them correctly and interrupt the returns correctly. Jeff Denham ----------- Digital:denham@zk3.dec.com