Purpose
The omp_get_wtime function returns a double precision value equal to the number of seconds since the initial value of the operating system real-time clock. The initial value is guaranteed not to change during execution of the program.
The value returned by the omp_get_wtime function is not consistent across all threads in the team.
Class
Function.
Argument Type and Attributes
None.
Result Type and Attributes
Double precision real.
Result Value
The number of seconds since the initial value of the operating system real-time clock.
Examples
USE omp_lib DOUBLE PRECISION START, END START = omp_get_wtime() ! Work to be timed END = omp_get_wtime() PRINT *, 'Stuff took ', END - START, ' seconds.'