I am writing a small program for sampling a series of sensors on an Arduino. The sampling process is not 100% perfect, depending on how many sensors I am reading, the actual difference between two samplings and the sampling period differ. For optimizing this problem, I am looking for an error metric that gives me an idea on how "good" the sampling process is. Is there anything already established?
Many thanks in advance