Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use timer for nanoseconds???

Status
Not open for further replies.

McRight2k

Programmer
Mar 17, 2003
3
0
0
ES
Hi!

Is possible make a delay in nanoseconds??

Thank's
 
whats the use? it wont be noticed.
but i think it might be possible with windows api calls (my weak subject).

Known is handfull, Unknown is worldfull
 
I don't think there is any place on a PC motherboard where frequencies in the GHz range are exposed. Although the CPUs operate internally at frequencies that high, isn't it done within the chip by multiplying the bus frequency?

Anyway, I've just got to ask, what do you want a delay measured in billionths of a second for?
 
In theory yes, in practice under Windows it really isn't that useful or practible
 
it's for test an algorithm for program a flash. I'm using the parallel port with the portio dll.

Already there are programs that make it, and I've the steps for program it, but I need make a clock for data transfer.

I'll look this timer later and post results.

thank's
 
You can use a for next loop for a delay
dim a as byte (or integer or double for longer delays)
IOPort on
for a=1 to N
next
IOPortOff
will give you a very short pulse depending on the value of N
but it depends on your processor speed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top