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