2 Replies - 6361 Views - Last Post: 14 June 2010 - 11:56 PM Rate Topic: -----

#1 bnc  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 108
  • Joined: 18-March 10

how to get runtime execution time of a program

Posted 14 June 2010 - 11:40 PM

can anybody tell me how to get runtime execution time (only cpu cycles) of a program... in c or c++
is there any way other than this....
#include <sys/time.h>

This post has been edited by bnc: 14 June 2010 - 11:45 PM

Is This A Good Question/Topic? 0
  • +

Replies To: how to get runtime execution time of a program

#2 sarmanu  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 966
  • View blog
  • Posts: 2,362
  • Joined: 04-December 09

Re: how to get runtime execution time of a program

Posted 14 June 2010 - 11:46 PM

You may find these interesting:
link1
link2
And this snippet.
Was This Post Helpful? 0
  • +
  • -

#3 bnc  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 108
  • Joined: 18-March 10

Re: how to get runtime execution time of a program

Posted 14 June 2010 - 11:56 PM

View Postbnc, on 14 June 2010 - 10:40 PM, said:

can anybody tell me how to get runtime execution time (only cpu cycles) of a program... in c or c++
is there any way other than this....
#include <sys/time.h>



thanks for the reply....
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1