A new absolute distance measurement system is demonstrated in this paper, which is based on a dual-wavelength passive mode-locked fiber laser. By controlling the intra-cavity loss and spectral filtering, the cavity mode-locked by a single-wall carbon nanotube saturable absorber is able to generate two pulse trains at slightly different repetition rates simultaneously with high mutual coherence. Comparisons with the commercial interferometers located on the 80-Meter Large-Scale Dimensional Standard show a combined measurement uncertainty of $6\mu m+1\times10{-7}L (k=2)$, in an averaging time of 1 s. Our compact dual-comb system provides a low-cost way for ranging, with continuous range, rapid measurement and high resolution.