compensate for time taken in polling loop