差異處
這裏顯示兩個版本的差異處。
linux:shell_script:execution_time_measurement [2016/07/02 11:05] tony 建立 |
linux:shell_script:execution_time_measurement [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 測量執行時間 ====== | ||
- | ===== time command ===== | ||
- | <code bash> | ||
- | time ./test.sh > /dev/null | ||
- | real 0m0.020s | ||
- | user 0m0.009s | ||
- | sys 0m0.020s | ||
- | </code> | ||
- | ===== $SECONDS variable ===== |