Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Re: execution time
Re: execution time [message #224106] Fri, 26 September 2008 22:29 Go to next message
Eclipse UserFriend
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 #224149 is a reply to message #224106] Sat, 27 September 2008 18:08 Go to previous messageGo to next message
vincenzo cappello is currently offline vincenzo cappelloFriend
Messages: 5
Registered: July 2009
Junior Member
Nick 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
Re: execution time [message #224157 is a reply to message #224149] Sat, 27 September 2008 18:14 Go to previous messageGo to next message
vincenzo cappello is currently offline vincenzo cappelloFriend
Messages: 5
Registered: July 2009
Junior Member
...ops...for the file open error may be the problem is that when you run
your application from the IDE the working directory is the root of the
project (by default) instead when you run the application from the command
line you are in the directory of the executable.
Re: execution time [message #1779052 is a reply to message #224149] Sun, 31 December 2017 09:26 Go to previous message
Zoltan Torok is currently offline Zoltan TorokFriend
Messages: 1
Registered: December 2017
Junior Member
vincenzo cappello wrote on Sat, 27 September 2008 18:08
Nick 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.
Previous Topic:Open Call Hierarchy fails on class functions
Next Topic:Any idea when cdt-9.4.zip(Oxygen-2) will be available for download in Archived p2 repos?
Goto Forum:
  


Current Time: Thu Jul 19 07:44:07 GMT 2018

Powered by FUDForum. Page generated in 0.01900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top