OpenMP includes the omp_get_wtime () and omp_get_wtick () functions for measuring synchronization performance ( docs here ), I would recommend using them.
Otherwise, try the profiler. I prefer the Google profiler, which can be found here .
There is also a manual method described in this answer.
source share