Getting the last n minutes of data

Viewed 35

Is there a way to add a value to a list (calculation times cause it to be every 2-3 seconds randomly) and then get the last n minutes from the list or do I have to add it to a dictionary or something?

Trying to edit code to do a time weighted average of the values it receives from a bluetooth device

edit: alternatively being able to count how many values have be put into the list for the past n minutes would be possible?

0 Answers
Related