Use a function declaration for updateClock