0

is there an IDE or perhaps a piece of software that could time my C++ programs? I'm currently using Visual Studio 2010 so if there's a functionality to help with that, I'd appreciate it.

Ouais
  • 341
  • 2
  • 3
  • 7
  • 2
    What you're probably looking for is a *profiler*; make a quick search in SO, there are several suggestions about them. – Matteo Italia Mar 19 '11 at 00:05
  • What edition of VS2010? It affects the answer. – Ben Voigt Mar 19 '11 at 00:26
  • While you're getting used to the idea of a profiler, you might try [this very simple method](http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs/2474118#2474118). – Mike Dunlavey Mar 21 '11 at 13:54

1 Answers1

2

You will want to use a Profiler. There are plenty of options out there, but start with what you have natively in VS - please read Find Application Bottlenecks with Visual Studio Profiler

Taken from here

Determining the speed of a particular operation is often known as profiling. The term "profiling" can also be used when other information about an operation's profile is queried -- such as the number of calls to a function.

And, as always, MSDN is your friend with Analyzing Application Performance by Using Profiling Tools

Sebastian Zaklada
  • 2,308
  • 1
  • 14
  • 25
  • 1
    Note that the VS profiler is only available in Premium and Ultimate SKUs. If you're using Pro or Express and do not have access to the higher SKUs, third party profilers are also available (check out a few of them here: http://en.wikipedia.org/wiki/List_of_performance_analysis_tools). – Peter Huene Mar 19 '11 at 00:35