QTP計時方法
在QTP使用中計時方法有如下三種:
方法一:MercuryTimers
MercuryTimers ("數據入倉").Start wait 2 MercuryTimers("數據入倉").Stop print MercuryTimers("數據入倉").ElapsedTime |
方法二:Timer
time1=timer wait 2 time2=timer time3=time2-time1 print time3 |
方法三:
Services.StartTransaction "入倉時間_" wait 2 Services.EndTransaction "入倉時間_" |
posted on 2013-09-25 11:21 順其自然EVO 閱讀(220) 評論(0) 編輯 收藏 所屬分類: qtp