From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f65c62bc56f82205 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-30 02:53:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!not-for-mail Reply-To: "Andy Wharton" From: "Andy Wharton" Newsgroups: comp.unix.tru64 References: <3cf4acf2$0$8510$ed9e5944@reading.news.pipex.net> Subject: Re: High resolution timers. Date: Thu, 30 May 2002 10:51:38 +0100 Organization: Andy@no.spam.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <3cf5f6b3$0$237$ed9e5944@reading.news.pipex.net> NNTP-Posting-Host: mk70.ardentsoftware.co.uk X-Trace: 1022752435 reading.news.pipex.net 237 193.128.90.70 X-Complaints-To: abuse@uk.uu.net Xref: archiver1.google.com comp.unix.tru64:7843 Thanks for that Jeff, >From my initial look at the documentation, I only get 32-bits worth of cycles as the top 32-bits are subject to OS intervention, is it possible to get the OS to lock down the top 32-bits to give me a real 64-bit value? Andy. "Jeffrey Mogul" wrote in message news:ad3shj$95li$1@src-news-too.pa.dec.com... > In article <3cf4acf2$0$8510$ed9e5944@reading.news.pipex.net>, "Andy Wharton" writes: > |> Could anyone point me at any documentation relating to the use of high > |> resolution times under Tru64? I'm looking for something equivalent to the > |> read_real_time call() on AIX or gethrtime() on Solaris. > > I'm not sure if this is equivalent or not, but see item #9 at > http://www2.tru64.org/pages.php?page=Tru64-FAQ-Programming > "How can I get microsecond resolution from gettimeofday(2)?" > > If you want better resolution than that, you will probably have to > read the cycle counter register directly. This requires a few lines > of assembly code. > > -Jeff