Quantcast
Channel: Timer
Viewing all articles
Browse latest Browse all 4

Timer

$
0
0
        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.

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>