Dim totalTime As New Timer totalTime.Start() '....This is the code block.... totalTime.Stop()I have a timer that I have started and stopped around a block of code. I want to see the value of that timer.
This should display the time it takes to run the block of code.
I have tried totalTime.ToString() and totalTime.Interval.ToString(), neither of which deliver the elapsed time.
Is there a way to get the elapsed time of a timer?
Mark the best replies as answers. Closing out your old/answered questions, will give us more time to answer your active questions.