🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Timer Function - Time Stamp Counter

Started by
1 comment, last by GameDev.net 24 years, 6 months ago
I may be wrong, but isn't the Time Stamp Counter (TSC) the on-chip counter that the Performance Counter uses?

Regards

Starfall

Advertisement
Read an article at the Programmer's Workshop titled, "selecting timer functions" that makes reference to, but does not discuss, a timer function they refer to as Time Stamp Counter (TSC). Does anyone have any info on this function and/or can point to a resource that does.

Thanks

-P.S. I know about other timer functions, such as Performance Counter, GetTickCount, etc., so I'm really only interested in info on the TSC.

Yeah, read by the RDTSC instruction.
If available, QueryPerformanceCounter() maps to this instruction

This topic is closed to new replies.

Advertisement