time 命令
命令用法
$ time [options] COMMAND [arguments]常用可选参数
结果解析
gackle@machine:/leetcode$ time python heap_sort.py
[1, 1, 7, 11, 23, 29, 32, 35, 76, 93, 123, 6674]
real 0m0.042s
user 0m0.016s
sys 0m0.016sLast updated
$ time [options] COMMAND [arguments]gackle@machine:/leetcode$ time python heap_sort.py
[1, 1, 7, 11, 23, 29, 32, 35, 76, 93, 123, 6674]
real 0m0.042s
user 0m0.016s
sys 0m0.016sLast updated