What's the best way to record distance on a non-treadmill indoor run?

What's the best way to track distance running indoor? Using the treadmill option doesn't seem ideal as it messes with the distance calibration.