clock implementation