Is there something like clock() that works better for parallel code?

Posted by Jared P on Stack Overflow See other posts from Stack Overflow or by Jared P
Published on 2010-03-18T01:57:42Z Indexed on 2010/03/18 2:01 UTC
Read the original article Hit count: 254

Filed under:
|
|

So I know that clock() measures clock cycles, and thus isn't very good for measuring time, and I know there are functions like omp_get_wtime() for getting the wall time, but it is frustrating for me that the wall time varies so much, and was wondering if there was some way to measure distinct clock cycles (only one cycle even if more than one thread executed in it). It has to be something relatively simple/native. Thanks

© Stack Overflow or respective owner

Related posts about parallel-processing

Related posts about clock