Fix computing CUDA elapsed time