Like clockwork has 2 different meanings across 2 categories:
Adverb · Prep_phrase
with regularity and precision
"the rocket launch went off like clockwork"
With perfect regularity and precision; faultless.