templexxx / tsc

Get unix time (nanoseconds) in 8ns, 10x faster than stdlib
MIT License
135 stars 6 forks source link

A fast way to get TSC frequency #4

Closed templexxx closed 3 years ago

templexxx commented 3 years ago

The crystal used by TSC is not stable( I've observed 1/1,000,000 - 1/100,000 wave in testing) , it's not a fault or bug, it's just how real world working.

What I can to is dropping the FreqTbl & implementing a fast way to get a trustworthy TSC frequency(which will be run periodically)

templexxx commented 3 years ago

tools/getfreq is the final answer