Put these functions inside the function `ddg_spice_stopwatch` because these are all in the global scope.