clockwork (n.)
also clock-work, 1660s, "mechanism of a clock," from clock (n.1) + work (n.). Figurative sense of "anything of unvarying regularity" is recorded earlier (1620s).