Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3401096
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:58:25+00:00 2026-05-18T04:58:25+00:00

how can i tell how long a: objWebClient.DownloadData(strURL) takes to complete? i wish there

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:58:25+00:00Added an answer on May 18, 2026 at 4:58 am

    Just use a Stopwatch:

    Stopwatch sw = Stopwatch.StartNew();
    webClient.DownloadData(...);
    sw.Stop();
    Console.WriteLine("Download took {0}ms", sw.ElapsedMilliseconds);
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So there's a nice long list of switches that can be passed to the
Besides polling , how can I tell when a long-running Amazon EC2 operation is
i know it depends on many thing. But can anybody tell me how long
If the full path of a file is very long, you can't tell which
As far as I can tell, there is no API (official or unofficial) to
I saw a cool style/js function (I can tell what it is) that implemented
Is there a way to determine how long it takes a web page, and
As far as I can tell developing for Silverlight is free as long as
With Perl's Getopt::Long you can easily define command-line options that take a variable number
as far as I can tell this should work. Except it doesn't :-/ the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.