Simple clock implementation