Implemented CUDA timing instead of python time.time() system.