SummaryThe omp_get_wtime routine returns elapsed wall clock time in seconds.
BindingThe binding thread set for an omp_get_wtime region is the encountering thread. The routine’s return value is not guaranteed to be consistent across any set of threads.
EffectThe omp_get_wtime routine returns a value equal to the elapsed wall clock time in seconds since some time-in-the-past. The actual time-in-the-past is arbitrary, but it is guaranteed not to change during the execution of the application program. The time returned is a per-thread time, so it is not required to be globally consistent across all threads that participate in an application.
Note – The routine is anticipated to be used to measure elapsed times as shown in the following example: