how can i tell how long a:
objWebClient.DownloadData(strURL)
takes to complete?
i wish there was a property that contained this info but i couldn’t find one…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use a
Stopwatch:If you’re using synchronous APIs, it’s really easy. It’s trickier with asynchronous APIs, but you’d just need to pass around the stopwatch in your state. Again, that’s pretty easy if you use an anonymous method or lambda expression for your event handler, as it can capture the local variable.