Real-time distance measurement immune from atmospheric parameters using optical frequency combs