comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@classwide.com>
Subject: Re: CPU time for Win32 & GNAT
Date: Fri, 12 Oct 2001 14:48:22 GMT
Date: 2001-10-12T14:48:22+00:00	[thread overview]
Message-ID: <WoDx7.10597$sj3.3583583254@newssvr30.news.prodigy.com> (raw)
In-Reply-To: tkDx7.26129$ev2.34679@www.newsranger.com

"Ted Dennison" <dennison@telepath.com> wrote in message
news:tkDx7.26129$ev2.34679@www.newsranger.com...
> In article <oyCx7.10592$Lz2.3580572774@newssvr30.news.prodigy.com>, Pat
Rogers
> says...
> >
> >"Gautier" <gautier_niouzes@hotmail.com> wrote in message
> >news:17cd177c.0110120321.3077bccf@posting.google.com...
> >> Does someone know how to obtain the CPU time (or a CPU
> >> duration...) for Win32 (under GNAT) in a simple way ?
> >> The program doesn't use tasking and no more resolution
> >> than the one of Duration is needed for time spans.
> >> I'm sure someone has a ready-made function in his/her toolbox...
> >
> >Better yet, why not use the Pentium ReadTimeStampCounter (RDTSC)
> >instruction?  It samples the register that keeps a count of the number of
> >clock cycles since boot-up.  Given the exact clock speed you can compute
> >exactly how much time has elapsed between two samples.
>
> I think he wants elapsed CPU time for his process, not for the whole
system.
> That would essentially just give him wall time (really really precise wall
> time).
>
> Is that instruction avalilable in ring 3?

I can't say.  (I know I can trust you -- I just don't know!  :-)





  reply	other threads:[~2001-10-12 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-12 11:21 CPU time for Win32 & GNAT Gautier
2001-10-12 13:50 ` Pat Rogers
2001-10-12 14:43   ` Ted Dennison
2001-10-12 14:48     ` Pat Rogers [this message]
2001-10-12 17:17       ` Ted Dennison
2001-10-12 14:36 ` Ted Dennison
2001-10-12 18:30   ` Sune Falck
  -- strict thread matches above, loose matches on Subject: below --
2001-10-14 19:54 Gautier Write-only-address
2001-10-15 14:33 ` Ted Dennison
2001-10-15  9:47 Gautier Write-only-address
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox