Adding time measurement using OpenMP functions.