title: Energy consumption of an algorithm in c code
body: <p>I need to calculate the energy consumption of an algorithm in c code. Any ideas how this can be done and if there are pre-defined functions for that?</p>
  
  <p>Thanks in advance,</p>