How To Measure Execution Time C Openmp

[Solved] How To Measure Execution Time C Openmp | Csharp - Code Explorer | yomemimo.com
Question : how to measure execution time c openmp

Answered by : real-name-4wqqpqiqeuay

#include <stdio.h>
#include <omp.h>
int main(){ double itime, ftime, exec_time; itime = omp_get_wtime(); // Required code for which execution time has to be found ftime = omp_get_wtime(); exec_time = ftime - itime; printf("\n\nTime taken is is %f", exec_gap);
}

Source : https://stackoverflow.com/questions/10874214/measure-execution-time-in-c-openmp-code | Last Update : Fri, 13 Nov 20

Answers related to how to measure execution time c openmp

Code Explorer Popular Question For Csharp