This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: questions about port and timer functions
- To: gnu-win32 at cygnus dot com
- Subject: Re: questions about port and timer functions
- From: Benjamin Riefenstahl <benny at crocodial dot de>
- Date: Sun, 18 Jan 1998 20:12:09 +0100
- Cc: herzer at rz-nov5 dot rz dot fh-weingarten dot de
- Organization: Crocodial Communications EntwicklungsGmbH
- References: <Pine.SGI.3.96.980117215840.4623A-100000@bluemountain.acl.lanl.gov>
Hi Patrick,
Patrick J. Fay wrote:
[suggests asm( "rdtsc" ) for timing]
Yeah, right I forgot about that one. That is Pentium only IRC, but than
Pentiums are fairly standard these days and certainly o.k. for lab
tests. How do you calculate that frequency constant? Is there a direct
method to determine that?
There is also QueryPerformanceCounter() which is probably just a wrapper
around rdtsc. It has the additional advantage that you can use
QueryPerformanceFrequency() to get at the frequency.
so long, benny
======================================
Benjamin Riefenstahl (benny@crocodial.de)
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".