Question memory usage functions

mahi

New member
Joined
Jun 6, 2010
Messages
3
Programming Experience
1-3
Hi everyone!

I am a beginner in vb.net programming...started a project in it...Below is the breif project description.

The application is to ensure the integrity of the files.Following are the majors things that i have to implement

1. To browse the files from the disk on runtime.initially i am just taking the database files so it's basically to connect with the MS access db files.

2.To apply the different hash and encryption algos on the file.

3.To store the results on the hard disk back.

4. To calulate the performance of each algo using some performance matrix.(TIME,MEMORY USAGE etc)

Now i am having problem in two things.First in runtime connectivity with MS access batabase..and secondly and the main problem is that i could'nt find any appropriate builtin function to calulate the processing TIME and the MEMORY usage.

Please guide me how to go through it.....Waiting for your kind responses!

Thank you..
 
To connect to any database you will use ADO.NET. Follow the Data Walkthroughs link in my signature for lots of ADO.NET links.

As for measuring time, you would use a Stopwatch object. Create one and Start it before executing your code, then Stop it and get the Elapsed time when you're done.

With regards to memory usage, do you actually mean the size of the files on disk? If so then the FileInfo.Length property is for you.
 
Would you please let me know if there are more builtin functions in vb.net that can be used as the performace parameters in this case..???
 
Back
Top