Skip to content

Commit 13b09e6

Browse files
author
程煊
committed
update code
1 parent b29165d commit 13b09e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,18 @@ function install_vimplus_on_linux()
392392
fi
393393
}
394394

395+
# 获取当前时间戳
396+
function get_now_timestamp()
397+
{
398+
cur_sec_and_ns=`date '+%s-%N'`
399+
echo ${cur_sec_and_ns%-*}
400+
}
401+
395402
# main函数
396403
function main()
397404
{
405+
begin=`get_now_timestamp`
406+
398407
type=`get_platform_type`
399408
echo "Platform type: "${type}
400409

@@ -405,6 +414,11 @@ function main()
405414
else
406415
echo "Not support platform type: "${type}
407416
fi
417+
418+
end=`get_now_timestamp`
419+
second=`expr ${end} - ${begin}`
420+
min=`expr ${second} / 60`
421+
echo "It takes "${min}" minutes."
408422
}
409423

410424
# 调用main函数

0 commit comments

Comments
 (0)