How does Ubuntu check the execution time and memory usage of a C program written by itself?
If you run the program. / test, enter PS aux | grep test after running (or when running), the information returned means
Among them are CPU usage, memory usage, and runtime. In particular, if you need to view these information in real time during the running of the program, enter top | grep test, it will be displayed every second, and Ctrl + C will exit.
Time test, in front of a time, you can display the time