measurement during deposition or removal of the layer