Relative Content

Tag Archive for python-3.xsleep

Is sleep function is not accurete in python?

Is there a better solution instead for using the sleep command with pyhton on a raspberry pi board?
My python program has sleep(1), which means one second delay and when the code has run for 3600 times it runs a MySQL insert command.
The problem is that the “delay” is not of all accurate. It may be a 1-2 minutes difference after every 3600 seconds when it runs the MySQL insert command.