title: How to divide by time Python
body: <p>I want my program to calculate how many jobs it completes per minute.</p>
  
  <p>Here is what the program already knows:</p>
  
  <p>ORIGINAL_NUM_OF_TOTAL_JOBS = this is the number of jobs it was told to complete
  NUM_OF_TOTAL_JOBS_REMAINING = This is the number of jobs remaining</p>
  
  <pre><code> print "\nTime Elapsed:" 
              TIME_ELAPSED = datetime.now() - STARTTIME
              print TIME_ELAPSED
              JOBS_PER_MINUTE = ORIGINAL_NUM_OF_TOTAL_JOBS - NUM_OF_TOTAL_JOB_REMAINING / TIME_ELAPSED
              print "\nAttempts/minute: "
              print JOBS_PER_MINUTE
  </code></pre>
  
  <p>I know the logic isn't right above because I'm dividing by "time" and time doesnt neccessarily = per minute, but im stuck.</p>
  
  <p>Output/Error Message from python</p>
  
  <pre><code>Time Elapsed:
  0:00:00.146000
  Traceback (most recent call last):
    File "C:\Users\jlemming\Documents\NetBeansProjects\myscript.py\src\myscript.py", line 117, in &lt;module&gt;
      ATTEMPTS_PER_MINUTE = ORIGINAL_NUM_OF_TOTAL_ATTEMPTS - NUM_OF_TOTAL_ATTEMPTS / TIME_ELAPSED
  TypeError: unsupported operand type(s) for /: 'int' and 'datetime.timedelta'
  </code></pre>