Automatic clock drift measurement and adjustment

Automatic clock drift measurement and adjustment