Fix get_wtime() bug

The previous code did not use the omp_get_wtime(); function which caused
erroneous timings when using multiple threads.