I've to measure the time taken by a c++ program to execute and also the number of clock cycles that were required to do so. Please help fast I've a deadline to meet.

Thanks in advance