Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
How to measure the ACTUAL execution time of any C program under TC?
explain me with suitable example.....
Posted

1 solution

When you say "execution time", do you mean the length of time the program is running on the system, or how much CPU time the program uses?

If you want total running time, just get the system date when the app starts and when it ends, and subtract them to get the toytal duration.

If you want CPU utilization...

almost 29 million google results for the search phrase "c determine cpu usage for an application" [^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900