a mechanical or electrical device for measuring time