From: "Andy Wharton" <Andy@no.spam.com>
Subject: Re: High resolution timers.
Date: Thu, 30 May 2002 10:51:38 +0100 [thread overview]
Message-ID: <3cf5f6b3$0$237$ed9e5944@reading.news.pipex.net> (raw)
In-Reply-To: ad3shj$95li$1@src-news-too.pa.dec.com
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" <mogul@mogul.pa.dec.com> 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" <Andy@no.spam.com> 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
prev parent reply other threads:[~2002-05-30 9:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-29 9:58 High resolution timers Andy Wharton
2002-05-30 0:42 ` Jeffrey Mogul
2002-05-30 9:51 ` Andy Wharton [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox