Update clock code