Capturing .GH execution time


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 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!