I use Python and pygame for the task of control and automation. Information from the sensor is displayed using pygame, then written to another location.
To limit the frame rate, I use the pygame clock mark.
Since this is an embedded application, the process can run for several months. Will the pygame clock stop working, i.e. If he saves ms as an integer (long integer) when he runs out of time, and can he handle the return to 0 (or, worse, minus)?
If time runs out, how long will it work? I think I remember that the first version of Win95 crashed after 4 days for this reason!
I am using usisg Python2.7 on Raspberry Pi ver 3, if relevant.
source share