[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

vb.net - stats per x amount of time

Posted on 2013-01-16
1
Medium Priority
?
211 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 83

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

656 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