获取脚本运行时长

$starttime=get-date

##此处为脚本内容##

(New-TimeSpan $starttime).TotalSeconds   #获取脚本运行时长

posted on 2013-01-28 11:13  momingliu11  阅读(274)  评论(0编辑  收藏  举报