Program slow down when running on Visual Studio

When I run my program inside Visual Studio 2012 it takes about 20 seconds to finish.

But when I run it outside VS2012 (directly clicking the executable) it only takes 3 seconds to complete.

Both builds are in release mode, so I don't understand why VS2012 is causing such slowdown...

Is this usual? or is there something wrong going on?

Also when I run it in VS2012 performance analysis it only takes 3 seconds.

Any ideas?

Thanks

Answers


You can run a project under VS by either hitting ctrl+F5 or just F5. The difference between the two is that the last attaches the debugger, so it'll run slower. Use ctrl+F5 and you're done.


Need Your Help

Consequences of not updating the bundle version for an iPhone app?

iphone app-store

I submitted an update for one of my iPhone apps last week and just realized I forgot to change the bundle version in Info.plist before I submitted. The update fixes a critical bug, so I want to get...

Threaded program returning wrong(?) results from threads

c multithreading pthreads

Hi am working on an assignment for Unix Programming in college an I have a slight problem.