|
-
May 26th, 2010, 06:04 PM
#3
Re: Precision of clock()
Yes.
In addition, Intel and Intel-like processors offer a hardware counter which counts the number of CPU oscillations since power-up.
Assembler sequences (which are highly dependent on the platform and compiler) exist for reading these high performance tick counts. You can search for the terms "cpuid" and "rdtsc", which are the names of relevant Intel assembler opcodes in this matter.
We covered this rather large topic very briefly a while ago here:
http://www.codeguru.com/forum/showthread.php?t=329326
- Chris
You're gonna go blind staring into that box all day.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|