I want to be able to calculate the number of counts after a given time interval
d ={}
now = datetime.now()
d[now] = count
'count' is from another variable but it continuously updates the dictionary as below. The dictionary d[now] looks like this:
2020-03-27 13:36:21.060325 -> 0
2020-03-27 13:36:37.067294 -> 5
2020-03-27 13:36:40.836107 -> 6
2020-03-27 13:36:41.097320 -> 6
2020-03-27 13:36:42.864630 -> 5
2020-03-27 13:36:42.985437 -> 5
difference between start time and finish time rate = sum of counts/time taken