* High resolution timers.
@ 2002-05-29 9:58 Andy Wharton
2002-05-30 0:42 ` Jeffrey Mogul
0 siblings, 1 reply; 3+ messages in thread
From: Andy Wharton @ 2002-05-29 9:58 UTC (permalink / raw)
Hi all,
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.
Thanks,
Andy.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: High resolution timers.
2002-05-29 9:58 High resolution timers Andy Wharton
@ 2002-05-30 0:42 ` Jeffrey Mogul
2002-05-30 9:51 ` Andy Wharton
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Mogul @ 2002-05-30 0:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: High resolution timers.
2002-05-30 0:42 ` Jeffrey Mogul
@ 2002-05-30 9:51 ` Andy Wharton
0 siblings, 0 replies; 3+ messages in thread
From: Andy Wharton @ 2002-05-30 9:51 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-30 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox