2012-02-06 31 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 

谁能帮

回答