在评估我的算法时,我应该在 Java 中使用 CPU 时间还是用户时间?我在这里使用了信息:How to get CPU, system, and user time for benchmarking , to get these values...
开始了:
"User time" is the time spent running your application's own code.
"System time" is the time spent running OS code on behalf of your application (such as for I/O).
我们也经常提到“CPU时间”:
"CPU time" is user time plus system time. It's the total time spent using a CPU for your application.
哪个最适合 CS 实验?