Change time base to ms
Improve calculation of average, and reset the meassurement history when a displaced Sensor is detected
Adding Refresh rate detection for windows