The clock
function measures cpu time, the time you spend actively on the CPU, the OMP function measures the time as it has passed during execution, two completely different things.
Your process seems to be blocked in waiting somewhere.
More Related Contents:
- parallel prefix (cumulative) sum with SSE
- In an OpenMP parallel code, would there be any benefit for memset to be run in parallel?
- Cholesky decomposition with OpenMP
- Difference between section and task openmp
- How to generate random numbers in parallel?
- No performance gain after using openMP on a program optimize for sequential running
- Understanding the collapse clause in openmp
- Installing OpenMP on Mac OS X 10.11
- Reductions in parallel in logarithmic time
- Pthreads vs. OpenMP
- How to parallelize this array sum using OpenMP?
- I need assistance in writing the code for bubble sort the array
- Anonymous Struct Pointer [closed]
- Pthreads in C. Simple example doesn’t work [closed]
- Why this code which is posted on howstuffworks.com does not work? [closed]
- Difficulty with files in a C database [closed]
- What is the effect of trailing white space in a scanf() format string?
- How do I concatenate const/literal strings in C?
- Arrow operator (->) usage in C
- How can I run an external program from C and parse its output?
- Why doesn’t my program crash when I write past the end of an array?
- Calculating factorial of large numbers in C
- Extracting bits with a single multiplication
- MPI_Bcast a dynamic 2d array
- Why does strcmp() return 0 when its inputs are equal?
- What are .a and .so files?
- Default values in a C Struct
- Why do strings in C need to be null terminated?
- Count each bit-position separately over many 64-bit bitmasks, with AVX but not AVX2
- Android read text file from asset folder using C (ndk)