The end goal is to time the execution of individual parallel functions. If my understanding of clock() is correct, this measures elapsed time rather than cpu time.
I am looking for some alternative to:
clock_t t;
t=clock();
function();
clock_t elapsed_time = t - clock();