title: How to use psutil.get_cpu_percent()?
body: <p>How to exactly use the function get_cpu_percent()? </p>
  
  <p>My code  is:</p>
  
  <pre><code>SDKTestSuite.DijSDK_CalculateFps(int(timeForFPS),int(index),cameraName)
  cpuUsage = process.get_cpu_percent()
  </code></pre>
  
  <p>Here I am calling a Function called <code>SDKTestSuite.DijSDK_CalculateFps()</code> and I am calling <code>get_cpu_percent()</code> to get the CPU usage of this call. I am Calling this function for different inputs, The result is sometimes the CPU usage gives <code>0.0%</code> which is not expected. </p>
  
  <p>So Am I using the <code>get_cpu_percent</code> in the correct manner? How to exactly use this <code>get_cpu_percent</code> function? Is there any interval parameters vary here? </p>
  
  <p>In the actual definition of this function it just sleeps for the given interval and compares the CPU time, but how does it calculates my functionality call here?</p>