Waveforms should be recorded with a sampling rate of at least 5kHz. Better results will be obtained if you record an event channel that marks the onset of each cycle of the mains or alternatively, a waveform channel that accurately reflects the mains frequency.