This is a simile — a direct comparison using "as" (or "like").
It compares an unnamed subject's steadiness to the regular rhythm of a clock's ticking.