Timer Function - Time Stamp Counter

Started by
1 comment, last by GameDev.net 24 years, 4 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