Inline thickness measurement system