Several Methods for Obtaining Time
We can reference this article
About the last method that using rdtsc assembly command to obtain time, there are some error prone points, we can reference to this article.
If you want to learn about the TST, please reference to this article.