Checking for RDTSC support
Posted on 1998-01-02
Is there a quick check you can do to find out if the RDTSC (time stamp)
is supported on the particular CPU that you're running on?
I know you can back this out by doing a bunch of tests to see what brand
CPU you have, and then figuring out from that info if the RDTSC
instruction is supported,
but I'm hoping to have a simpler runtime check that doesn't require us
to keep track
of every CPU brand and model.
Currently if you execute the RDTSC on cpu's that don't support it, Win95
pops up a
box about an illegal instruction. Is there some way you can attempt to
RDTSC and then catch the fact that its not supported before Win95 gets
about it? If so, will this work on NT also?
Thanks for any help you can give me-