set_clock functions: Add nullable annotations