[font=Book Antiqua]
I run my Cpp codes for recognition and classification, in SUSE Linux.
I need to know the RUNNING time or computation cost of my program for further analysis.
HOW CAN I do it??
Please guide me in details if possible.
Best regards for your time.
BeGood
Running time for C++ program in SUSE LinuxRunning time for C++ program in SUSE Linux
Page 1 of 1
3 Replies - 2078 Views - Last Post: 19 June 2009 - 10:03 PM
Replies To: Running time for C++ program in SUSE Linux
#2
Re: Running time for C++ program in SUSE Linux
Posted 19 June 2009 - 03:32 AM
begood, on 19 Jun, 2009 - 09:14 AM, said:
[font=Book Antiqua]
I run my Cpp codes for recognition and classification, in SUSE Linux.
I need to know the RUNNING time or computation cost of my program for further analysis.
HOW CAN I do it??
Please guide me in details if possible.
Best regards for your time.
BeGood
I run my Cpp codes for recognition and classification, in SUSE Linux.
I need to know the RUNNING time or computation cost of my program for further analysis.
HOW CAN I do it??
Please guide me in details if possible.
Best regards for your time.
BeGood
Well, if you compile your program and call it "thingy", then you can run
time ./thingy
from the console.
#3
Re: Running time for C++ program in SUSE Linux
Posted 19 June 2009 - 09:53 PM
thnx a lot Moopet. it works.
I read thr. man time -- but did not differentiate the user and sys time.
e.g,
real 15.001sec
user 13.890
sys 1.523
--- real is from start to end.
user and sys? not sure!
I read thr. man time -- but did not differentiate the user and sys time.
e.g,
real 15.001sec
user 13.890
sys 1.523
--- real is from start to end.
user and sys? not sure!
#4
Re: Running time for C++ program in SUSE Linux
Posted 19 June 2009 - 10:03 PM
Real time is the actual time that the program was executing.
User time is the time that CPU spent on the program itself.
System time is the time that CPU spent in the operating system, doing tasks on behalf of your program.
Edit: I'm not sure why you have (sys + user) > real. Common sense tells me that (user + sys) must be <= real, unless some CPU operations can be considered both as user and sys, which is not the case.
User time is the time that CPU spent on the program itself.
System time is the time that CPU spent in the operating system, doing tasks on behalf of your program.
Edit: I'm not sure why you have (sys + user) > real. Common sense tells me that (user + sys) must be <= real, unless some CPU operations can be considered both as user and sys, which is not the case.
This post has been edited by Dantheman: 19 June 2009 - 10:15 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|