Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/153.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 多快的c++;文件是否已完成?_C++ - Fatal编程技术网

C++ 多快的c++;文件是否已完成?

C++ 多快的c++;文件是否已完成?,c++,C++,可能重复: 是否有计算.exe文件完成速度的程序?例如,如果必须编写从输入文件中取一个数的C++,将其与2相乘,并输出输出文件。如果我启动C++程序,我就无法判断它是如何完成的,因为对我来说,它看起来像是0.1秒闪烁的窗口。那么有没有可能准确地说出时间呢?在Linux和其他Unice下,您可以使用time命令 time foo.exe real 0m0.053s user 0m0.000s sys 0m0.000s 我相信Windows也有类似的功能。在Linux和其他

可能重复:


是否有计算.exe文件完成速度的程序?例如,如果必须编写从输入文件中取一个数的C++,将其与2相乘,并输出输出文件。如果我启动C++程序,我就无法判断它是如何完成的,因为对我来说,它看起来像是0.1秒闪烁的窗口。那么有没有可能准确地说出时间呢?

在Linux和其他Unice下,您可以使用time命令

time foo.exe

real    0m0.053s
user    0m0.000s
sys     0m0.000s

我相信Windows也有类似的功能。

在Linux和其他Unice下,您可以使用time命令

time foo.exe

real    0m0.053s
user    0m0.000s
sys     0m0.000s

我相信Windows也有类似的功能。

在Unix上,
time
命令将告诉您一个命令在用户、系统和总时间方面花费了多长时间

在Unix上,
time
命令将告诉您一个命令需要多长时间,包括用户、系统和总时间