A Correlation Method for Measurement of Variable Magnetic Fields