相同代码执行时间的差异

时间:2019-06-22 04:10:39

标签: time build runtime

我用C ++编写了基本的Hello world代码。

然后我使用CodeBlocks构建并运行它。

#include <iostream>
using namespace std;

int main()
{
    cout<<"Hello World!";
}

然后我连续多次执行“构建并运行”(同时在系统上不执行任何其他操作),并且每次执行时间都不相同。为什么会这样?

0 个答案:

没有答案