Capturing .GH execution time

Hey!

I am after two solutions:

  1. The ability to re-compute a whole GH definition programmatically (I am generating permutations of energy models). This will only be called once all components (including some subprocess.run() commands) have completed.
  2. The ability to record the run time of said definition execution, recording it as a parameter within my output file (.json).

Any help would be appreciated!

Cheers