کافی است یک bash script فایل درست کنیم و این را در داخل آن بنویسیم
start=`date +%s` stuff end=`date +%s` runtime=$((end-start)) echo $runtime >> runtime.txt