Better timming for cpu single and pthreads