a clock is used for keeping time