I am looking for a fast way to get the elapsed time between two calls of a function in C.
I considered using jiffies, but they are not available in userland. So, should I use getimeofday() or is there any fastest way to do this.
I am only interested in the elasped time between two calls, to use in a benchmark tool.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…