Re: execution time [message #224106] |
Fri, 26 September 2008 22:29 |
Eclipse User |
|
|
|
Originally posted by: codeslave.ca.ibm.com
Copying to eclipse.tools.cdt
Suryanarayana Pendela wrote:
> I am using eclipse with CDT (the latest versions). How do I find out
> the execution time of my program? Something similar to the time command
> in unix. One more weird thing that I am observing is that my program
> runs successfully through the eclipse ide. However when I try to run
> manually the executable using commandline with the arguments it
> encounters file open errors. I am reading info from files using
> ifstream in my c++ code and the arguments are the file names. Any ideas
> as to why this is happening?
> Regards,
> Surya.
|
|
|
|
|
Re: execution time [message #1779052 is a reply to message #224149] |
Sun, 31 December 2017 09:26 |
Zoltan Torok Messages: 1 Registered: December 2017 |
Junior Member |
|
|
vincenzo cappello wrote on Sat, 27 September 2008 18:08Nick Boldt wrote:
> Copying to eclipse.tools.cdt
> Suryanarayana Pendela wrote:
>> I am using eclipse with CDT (the latest versions). How do I find out
>> the execution time of my program? Something similar to the time command
>> in unix. One more weird thing that I am observing is that my program
>> runs successfully through the eclipse ide. However when I try to run
>> manually the executable using commandline with the arguments it
>> encounters file open errors. I am reading info from files using
>> ifstream in my c++ code and the arguments are the file names. Any ideas
>> as to why this is happening?
>> Regards,
>> Surya.
For the execution time you can use standard c++ functions. For the
I think his question (and if not, at least mine does) referred to what are those "standard c++ functions". I only get build time, but I don't see the execution time. Any way to fix this?
I've heard about some "gprof" thing if I search the program's Help section, but it's very unclear. Any way to either clarify this, to see if it's what I need and in that case how to use it, or another function / program if it's not?
Probably doesn't matter, but I'm using Eclipse Oxigen, June 2017 version.
|
|
|
Powered by
FUDForum. Page generated in 0.03906 seconds