Is it possible to track nano-seconds, or milli-seconds?

A

Anthony

Is it possible to keep track of the number of nano-seconds, or milli-seconds
it takes to execute a procedure similar to this:

Sub test()

Dim i As Long

Do Until i = 10000000

i = i + 1

Loop

End Sub

I wanna see how many milliseconds it takes to increment i by 1 until it
reaches 10000000
 
S

Smartin

Anthony said:
Is it possible to keep track of the number of nano-seconds, or milli-seconds
it takes to execute a procedure similar to this:

Sub test()

Dim i As Long

Do Until i = 10000000

i = i + 1

Loop

End Sub

I wanna see how many milliseconds it takes to increment i by 1 until it
reaches 10000000

Yes (see Douglas's reply), and you might want to take a look at this
thread too:

http://preview.tinyurl.com/ygho95
 
D

dbahooker

yeah... SQL Server and _ADP_ can work with nanoseconds without a
problem.

they're rounded to the nearest timeslice; which is a group ot 30 ns I
believe

-Aaron
 
S

Smartin

yeah... SQL Server and _ADP_ can work with nanoseconds without a
problem.

they're rounded to the nearest timeslice; which is a group ot 30 ns I
believe

-Aaron

IIRC an API call makes it pretty easy to get high precision timing in
VB[A]. However for purposes of this demonstration, measurements against
Time() are enlightening.
 
D

dbahooker

or against SQL Server :)

-Aaron

yeah... SQL Server and _ADP_ can work with nanoseconds without a
problem.

they're rounded to the nearest timeslice; which is a group ot 30 ns I
believe

-Aaron

IIRC an API call makes it pretty easy to get high precision timing in
VB[A]. However for purposes of this demonstration, measurements against
Time() are enlightening.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top