• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

measure the runtime and compiletime

How shall i measure the runtime and compile time of a 'c'
program .Could someone send the skeleton of the code...
0
tcsubash
Asked:
tcsubash
1 Solution
 
ahoffmannCommented:
compile time:
  time cc -pg -c file.c
runtime:
  a.out; prof

No change in code needed ;-)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now