Hi I wanted to use the clock_gettime()
function for measuring the performance of my code.
I am unable to understand the difference between the different kinds of clocks used in the function from the man page descriptions. esp
CLOCK_REALTIME,
CLOCK_PROCESS_CPUTIME_ID
CLOCK_THREAD_CPUTIME_ID
Can someone explaing what each of these clocks do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…