You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
267 B
9 lines
267 B
3 years ago
|
date -R
|
||
|
starttime=`date +'%Y-%m-%d %H:%M:%S'`
|
||
|
make px4_fmu-v3_default
|
||
|
endtime=`date +'%Y-%m-%d %H:%M:%S'`
|
||
|
date -R
|
||
|
start_seconds=$(date --date="$starttime" +%s);
|
||
|
end_seconds=$(date --date="$endtime" +%s);
|
||
|
echo "本次运行时间: "$((end_seconds-start_seconds))"s"
|