Блог пользователя Tensor

Автор Tensor, 10 лет назад, По-английски

while solving a certain problem in c++, I tried to see the execution time on my pc.

Running the program on the terminal and mingwG++ gives time 0.14, while running it through visual studio it gives me 3.874!!!!!

please can anyone explain me this phenomenon, why there is such a great difference between both executions ?!

thanks in advance.

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Source code? specific compile switches used? It's very likely you're using a debug build in visual studio which populates code with run-time checks and uses debug version of STL as well. "Release" compile would be faster.