Reputation: 495
Where in the VS2019 can I see the execution time of the code? Sorry for stupid question
Upvotes: 8
Views: 32261
Reputation: 85521
That depends on the precision you're interested in. If milliseconds then in Visual Studio 2019 you can see the time between two breakpoints under Diagnostic Tools -> Events -> Duration (opens automatically in Debug mode, or use Ctrl+Alt+F2).
Some notes:
For a higher precision C++ code performance is measured in code itself using e.g. the <chrono>
package.
Upvotes: 18