2012-02-06 94 views
0

我目前有兩個秒錶(運行在VB 2010程序中,我想要做的就是將它們的值組合在一起,並將結果輸出爲格式爲0:00:00的字符串。VB.Net:結合秒錶值

我試過Add方法和+方法,但這種失敗

這是短我有什麼:?

Dim timer1 As New Stopwatch 
Dim timer2 As New Stopwatch 

[Assuming the timers were started separately] 

Dim elapsed1 As TimeSpan = timer1.Elapsed 
Dim elapsed2 As TimeSpan = timer2.Elapsed 

elapsed1 += elapsed2 

誰能幫

回答