title: How to determinate statement's cpu usage in android
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3118234/how-to-get-memory-usage-and-cpu-usage-in-android">How to get Memory usage and CPU usage in android?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm writing an android application that needs to know how much cpu/battery intensive are some statements.</p>
  
  <p>For example if I call a function, I would like to know how much battery that function used, or at least something like that, for example how many clock cycles have been used.</p>
  
  <p>Do you know everything I can use?</p>
  
  <p>Thanks in advance</p>
  
  <p>Leonardo</p>