title: How to get the value of clock cycles in ticks using linux?
body: <p>Taking the timestamp in linux is same as clock cycles in ticks for linux. 
  I know how to get the timestamp but I dont now how to take the clock cycles in ticks.
  could someone tell me what is the difference between the two ??
  could someone give me a small example for clock cycles in ticks ??</p>
  
  <p>Looking forward for your reply.</p>
  
  <p>extra : Am trying to add assembly instructions for timing in pisa architecture using simplescalar simulator. For my instructions i should access clock cycles and store it in the register.</p>