A first circuit is disposed on the semiconductor substrate, operates
synchronously with a first clock signal, and outputs a first output
signal delayed by a first delay time from the first clock signal. A first
measuring circuit measures indirectly a first increase and a first
decrease of the first delay time. A setting circuit operates
synchronously with the first clock signal, outputs a second clock signal
delayed from the first clock signal by a second delay time adding the
first increase and subtracting the first decrease. A second circuit
inputs the first output signal and operates synchronously with the second
clock signal.