-2
所以我在linux下使用raspberry pi做了一个质量保证任务,这7个程序是preload,preload.c,run_test,run_test.c,runit_mainain,runit_preload,runit_test。在linux中测量执行时间
我所做的是运行runit_preload,然后运行run_test,然后拔掉树莓并在最后运行runit_maintain。我需要记录每个程序的执行时间,但每次尝试时间-p runit_preload或time -p ./preload.c时,都不会显示时间,而是再次运行程序。
阅读[时间(7)](http://man7.org/linux/man-pages/man7/time.7.html) –