Get experiment timing information

Problem

You want to know when an experiment started and finished running.

Solution

The ExperimentData class contains timing information in the following attributes, which are all of type datetime.datetime and in your local timezone:

Discussion

ExperimentData.start_datetime can also be set to a custom timestamp when instantiating an ExperimentData object by passing a value to the start_datetime field.