title: How to incorporate real time variable into an equation for swift 3.0
body: <p>I am trying to create a function to tell the distance traveled after the elapse of x amount of actual clock time. </p>
  
  <p>Would like to incorporate real time into this function: So after x amount of time of traveling, will still be able to obtain distance traveled in real time.    </p>
  
  <p>So: let distanceTraveled = (rate * realClockTimeTraveled)</p>
  
  <p>I just don't know how to incorporate actual clock time into the equation.  I would appreciate your insights and suggestions.  Thank you so much, in advance!   </p>