We revisit and improve the optical heterodyne technique for the measurement of the laser coherence, by digital acquisition of the beat-note and numerical analysis of the resulting signal. Our main result is that with the same experimental setup we reach the very "short-time linewidth" with the highest accuracy as well as the frequency noise spectrum.