I am trying to measure the time taken to run certain functions in my code. Since using RDTSC is most efficient, I would like to use this. However, I couldn't understand how to implement this.
Can someone please provide an example as to how we would implement this in code(C Language) and convert the number of cycles to milliseconds? Like for example, measuring the time it takes to do a read from the file.
I couldn't find much explanations on the implementation, but found only definitions.
Thank you.