473,320 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

¿How can I to get the time of execution of an application?

Hi everybody!

I need to make a benchmark executing a DLL's functions series in a "for"
cicle, but I need to get the initial y final time and then get the
difference to make a benchmark. I Tried with "Time of date, Now()", but I
can't to convert that results in an integer...¿How can I do that?

I appreciate some help

Regards
Carlos Villaseñor M.

May 27 '06 #1
2 956
hi Carlos, there are several ways to do it. Here is the most primitive:

Dim StartTime As Date = Now
'processing here ...
MsgBox("ElapsedTime: " &
Now.Subtract(StartTime).TotalMilliseconds & " millisecs")

-tom

Carlos Villaseñor M. ha scritto:
Hi everybody!

I need to make a benchmark executing a DLL's functions series in a "for"
cicle, but I need to get the initial y final time and then get the
difference to make a benchmark. I Tried with "Time of date, Now()", but I
can't to convert that results in an integer...¿How can I do that?

I appreciate some help

Regards
Carlos Villaseñor M.


May 27 '06 #2
Carlos,

Measuring time on a multipurpose computer is never sure. Therefore you have
to do things more times.

I use for this

dim start as integer = environment.tickscount ' to get a time in
milliseconds
I hope this helps,

Cor

"Carlos Villaseñor M." <cv*******@avantel.net> schreef in bericht
news:O7*************@TK2MSFTNGP02.phx.gbl...
Hi everybody!

I need to make a benchmark executing a DLL's functions series in a "for"
cicle, but I need to get the initial y final time and then get the
difference to make a benchmark. I Tried with "Time of date, Now()", but I
can't to convert that results in an integer...¿How can I do that?

I appreciate some help

Regards
Carlos Villaseñor M.

May 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
8
by: Keith Smith | last post by:
Sorry to ask about something so simple. I have researched this for the past hour and just can't find what I am looking for. I have a simple C# aplication that has two forms. They are called...
1
by: Jack Wright | last post by:
Dear All, I have observed that if I call a synchronous WebService from my aspx page then even if I set oProxy.TimeOut = 1000, the WebService thread execution is still running... Since my...
6
by: Grace | last post by:
Hello, I write a Web Application: its UI has a DataGrid controller. The web application gets huge data from SQL Server, then shows the result after processing these data. It needs much time to...
138
by: Ian Boyd | last post by:
i've been thrown into a pit with DB2 and have to start writing things such as tables, indexes, stored procedures, triggers, etc. The online reference is only so helpful. The two pdf manuals are...
22
by: Cylix | last post by:
I have a 4row x 1col table, I would like to drop all the content of row three. Since Mac IE5.2 does not suppport deleteRow method, I have also try to set the innerHTML=''; but it does not work. ...
7
by: Haneef | last post by:
Hi All The problem is that I need to keep track of time in my program. Getting time using system calls every time I need is definitely very expensive. So one solution could be to spawn a...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
4
by: sphinney | last post by:
Hi everyone. I'm creating an application inside Access 2007. The application will retrieve data from various locations on my company's network servers. Depending on the time of day, alignment of...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.