The Hebrews divided the night into three watches, the Greeks usually into four (sometimes five), the Romans (followed by the Jews in New Testament times) into four. [OED]The meaning "small timepiece" is from 1580s, developing from that of "a clock to wake up sleepers" (mid-15c.).