Answers for "how to measure execution time c openmp"

0

how to measure execution time c openmp

#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);

}
Posted by: Guest on November-06-2020

Code answers related to "how to measure execution time c openmp"

Browse Popular Code Answers by Language