Advertisement

Timer Function - Time Stamp Counter

Started by December 22, 1999 10:22 PM
1 comment, last by GameDev.net 25 years, 2 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

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.

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

This topic is closed to new replies.

Advertisement