作者:lin悟_462 | 来源:互联网 | 2023-05-17 18:10
SupposeIhaveacodeexecutedinUnixthisway:假设我有一个用Unix执行的代码:$.mycodeMyquestionisist
Suppose I have a code executed in Unix this way:
假设我有一个用Unix执行的代码:
$ ./mycode
My question is is there a way I can time the running time of my code executed K times. The value of K = 1000 for example.
我的问题是,有没有一种方法可以让我的代码运行时间执行K次。例如K = 1000的值。
I am aware of Unix "time" command, but that only executed 1 instance.
我知道Unix“time”命令,但只执行了一个实例。
6 个解决方案