title: Getting cycles per byte for my algorithm?
body: <p>I know the theory but have problem with practical implementation. I wrote an AES algorithm in C. Now, I would like to know, how many cycles per byte it "has". I know that I have to (is that 100% rigth?):</p>
  
  <ol>
  <li>Calculate speed of an algorithm in bytes per second</li>
  <li>Get clock speed in hertz</li>
  <li>Divide speed of an algorithm in bytes per second by clock speed in hertz</li>
  <li>Take the reciprocal from 3.</li>
  <li>Measure speed of an algorithm in gigabytes per second</li>
  <li>Divide speed of an algorithm in gigabytes per second by the clock speed in gigahertz</li>
  <li>Take the reciprocal from 6.</li>
  </ol>
  
  <p>Is it possible to do it in C/C++? How to make it and what should I use/look for to make it? </p>
  
  <p>Im interested in Linux/Windows/Mac solutions.</p>