multithreading - How accurate is python's threading.Timer over extremely long intervals (days)? -
i have server application needs schedule functions called @ various times during week, desired accuracy of plus or minus 15 seconds, let's say. threading.timer simplest solution, i'm concerned accuracy when using intervals of several hundred thousand seconds. can find concerning timer's accuracy focuses on timers comparatively tiny periods.
tests using timers intervals on order of hour or 2 yield perfect results, i'd assurance can rely on.
accuracy should match computer clock: milliseconds.
the real problem jobs you're running. finish before period expires? that's dependent on job , machine load. timer can't that.
Comments
Post a Comment