Averaged clock sync to make it more robust.