pyquickbench.TimeTrain.to_dict#

TimeTrain.to_dict(return_first_instance=False, names_reduction='default')[source]#

Returns time measurements within a TimeTrain as a Python dictionary

See Time Trains for usage example.

Parameters:
  • return_first_instance (bool, optional) – Whether to also return a dictionary containing the index of the first occurrence of every name, by default False.

  • names_reduction (callable | str | None, optional) – Optionally overrides the TimeTrain’s reduction. Set to "default" to not override reduction. By default "default".