return cuda computing time from functions. add exception handling. add the script used to run experiments.