Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: More precise than a second...


Message #1 by "John R Lick - Hotmail" <JohnRLick@h...> on Tue, 26 Mar 2002 09:05:42 -0800
John,

Try this

Dim sglStartTime      As Single
Dim sglEndTime        As Single
Dim sglElapsedTime    As Single

sglStartTime = Timer()

.... actual work here...

sglEndTime = Timer()

sglElapsedTime = sglEndTime - sglStartTime


The timer function should give you the granularity that you need.

--Tripp



> I am working on finding bottlenecks in a solution, and need to get 
timings
that are more precise than one second. Can someone suggest how to get 
ticks,
or any other precise timing count?

Thank you,


John Lick
Sr. Software Developer
JohnRLick@h...



  Return to Index