From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,989ea8aec121e804,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-02-07 23:36:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer2.newshosting.com!intgwlon.nntp.telstra.net!news.telstra.net!nsw.nnrp.telstra.net!not-for-mail Message-ID: <3C637FFF.38B779FB@ot.com.au> From: Mike Mowbray X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.sys.dec Subject: Tru64 equivalent of gethrtime() on Solaris? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Open Telecommunications Limited Cache-Post-Path: emissary!unknown@wanda.syd.ot X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Fri, 08 Feb 2002 18:36:31 +1100 NNTP-Posting-Host: 203.42.249.64 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 1013153792 203.42.249.64 (Fri, 08 Feb 2002 18:36:32 EST) NNTP-Posting-Date: Fri, 08 Feb 2002 18:36:32 EST Xref: archiver1.google.com comp.sys.dec:11874 Not sure whether this is the right newsgroup to ask this. Apologies if it's not. I'm trying to find out whether Tru64 has some equivalent of Solaris' gethrtime() function. The gethrtime() fn returns a number of nanosecs relative to some arbitrary point in the past (not necessarily the Epoch) and (most importantly for me) is guaranteed to be always monotonic-increasing. I.e: it never jumps backwards even if the system time is unexpectedly stepped backwards by ntpd or a sysadmin. I've been using clock_gettime(CLOCK_REALTIME,...) but I know that CLOCK_REALTIME does not meet the above requirements so I've got to find something better. I'm using "OSF1 V4.0 878 alpha", in case that makes a difference. Any suggestions? TIA. - MikeM.