We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29165d commit 13b09e6Copy full SHA for 13b09e6
install.sh
@@ -392,9 +392,18 @@ function install_vimplus_on_linux()
392
fi
393
}
394
395
+# 获取当前时间戳
396
+function get_now_timestamp()
397
+{
398
+ cur_sec_and_ns=`date '+%s-%N'`
399
+ echo ${cur_sec_and_ns%-*}
400
+}
401
+
402
# main函数
403
function main()
404
{
405
+ begin=`get_now_timestamp`
406
407
type=`get_platform_type`
408
echo "Platform type: "${type}
409
@@ -405,6 +414,11 @@ function main()
414
else
415
echo "Not support platform type: "${type}
416
417
418
+ end=`get_now_timestamp`
419
+ second=`expr ${end} - ${begin}`
420
+ min=`expr ${second} / 60`
421
+ echo "It takes "${min}" minutes."
422
423
410
424
# 调用main函数
0 commit comments