0

I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00.

I tried the Add method and the + method but this fails.

This is in short what I have:

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

Can anyone help?

Edited by thedonedeal: n/a

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Reverend Jim
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.