コード実行時のシェルスクリプトのタイミング

 

時間秒:$(日付+%sの)

算術式:

$(($ cost_time / 60))

$(($のcost_time%60))

#!/ binに/ bashのの

#のccacheのはEPELからミラーされます。http://mirrors.xxxx.com.cn/epel/7Server/x86_64/ 
のstart_time = $(日付+%s)を
1寝

#sudoモック-r XXXX-V5を0.05-x86_64の--rebuildカーネル3.10.0-957.1.3.el7.xxxx.gd2389d1.src.rpm --no-クリーン--no-クリーンアップ-後

END_TIME = $(日付+%s)は
cost_time = $ [$ end_time- $のstart_time] 
エコー"カーネル時間を構築する$(($ cost_time / 60))分$(($ cost_time%60))のです"

  

おすすめ

転載: www.cnblogs.com/noxy/p/11455571.html