Apologies, I guess this is more of a python question but it's for my first raspberry pi project so hope that someone can advise.
I am reading 4 sensors at 600 micro-seconds per sample. At the same time I am adding a timestamp to each sample. I have used the following code which times 999 999 micro-seconds then resets. Does anyone know how to extend this timer to 60 seconds (i.e. 60 999 999)? Any advise would be appreciated. I've only added the important code below, will add full code if required.
Code: Select all
from datetime import datetime while True: now = datetime.now() print(now.microsecond)