HOME
| OPENMP API Specification: Version 5.1 November 2020

3.10.1  omp_get_wtime

Summary The omp_get_wtime routine returns elapsed wall clock time in seconds.

Format

SVG-Viewer needed.

 

 
double omp_get_wtime(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
double precision function omp_get_wtime()  

SVG-Viewer needed.

Binding The 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.

Effect The 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.