📜  如何测量执行时间 c openmp - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:34.009000             🧑  作者: Mango

代码示例1
#include 
#include 

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

}