|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
¿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. 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: Show quoteHide quote > 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. 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 Show quoteHide quote "Carlos Villaseñor M." <cvmdis***@avantel.net> schreef in bericht news:O74MlSdgGHA.356@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. > > >
VB.NET events creates a hidden delegate, but how do I access it?
Console app no accessible 'Main' method with an app... CurrencyManager Question How to use the httpwebrequest with Cookies in "GET" method Detect if virusscanner is installed current function / sub name ? Cal Dll was written by VC++ in VB receiving data over socket filtering which files can be opened Datagrid scrollbar |
|||||||||||||||||||||||