CPU Time
-
What is CPU Time? Some body tell me that this program use 10% CPU Time. what does him mean? and How can I write the code for check CPU Time of my program, what's function support this issue.
Max++ wrote:
What is CPU Time?
Here[^] you go! This was my first hit when I searched.
Max++ wrote:
How can I write the code for check CPU Time of my program,
You can use types in time.h[^] to find the execution time. :)
Navaneeth How to use google | Ask smart questions
-
What is CPU Time? Some body tell me that this program use 10% CPU Time. what does him mean? and How can I write the code for check CPU Time of my program, what's function support this issue.
Max++ wrote:
Some body tell me that this program use 10% CPU Time.
That means that the program was using the CPU 10% of the time it was running. So, if it ran for 10 minutes, I would have used 1 minute of CPU time.
Max++ wrote:
How can I write the code for check CPU Time of my program,
Use
GetProcessTimes
[^]. The total CPU time your program has used is the sum of the user and kernel times. The total elapsed time is the creation time substracted from the current time. You can express the CPU time as a % by dividing the total CPU time by hte elapsed time.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p