Solved

vb.net - stats per x amount of time

Posted on 2013-01-16
1
208 Views
Last Modified: 2013-01-22
hello there,
I have a little app that I made that downloads images from the web.. I would like to know how can I add two stats.. one that tells me how many downloaded per minute and one that tells me every hr.. how can I do this exactly?
0
Comment
Question by:XK8ER
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 81

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 38786387
create 4 counters initialized to zero

save the  the start time to 2 variables (one will be static the other one will be changed every minute)
do {
after each download increment the downloaded1 counter
check if a minute has passed by comparing current time with the start time
if current_ time is >= start time + 1 minute
{
// this is the per minute counter
display downloaded1 counter (this is the per minute)
display download1 counter * 60 (downloads/hour)
//
   totaldownloads = totaldownloads + downloaded1 counter
   set downloaded1 counter to 0
   set starttime = currenttime
} while (filestodownload.count > 0)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question