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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nano Seconds

Status
Not open for further replies.

camidon

Programmer
Joined
May 9, 2000
Messages
268
Location
US
Does anyone know if you can get Nano seconds from the current time in Visual Basic?

The farthest that I'm able to get is Milliseconds.

Thanks,

Chris
 
I don't think you could because even if you could, any computer could not be that accraute.

Pete.
My site: clix.to/F
 
I assume you realize we're talking about a BILLIONTH of a second. 10^-9

This is some very serios timing!

What is the FSB speed on your computer?

Memory fuctions at the nanosecond level, which is amaizing to me, since my feable little brain hurts when I think that small... ;-)

Now, since I don't think it can be done, I'll share an interesting little bit of information to let your brains ponder...

Theoretically, no object ever makes contact with another object.

Premise 1: no matter the distance, there is ALWAYS 1/2 way there. (ie: Half way from here to there) No matter how far you go, you can mathematically measure 1/2 way.

Next week: Orbital Dynamics Lesson



[fish] No Dolphins were harmed in the posting of this message... Dolphin Friendly Tuna!
 
Hi Tuna,

It's good to see that you've been at the classical education bit!

The '1/2 way premise' is a re-statement of Zeno's paradox, dating from approx 500 BC, and one of the first of the mathematical paradoxes that led to the development of maths in classical Greece

camidon,
The current top bus speed of a Pentium is only 533 Mhz, so the smallest interval between 2 successive bus actions is 2 nanosecs. There was recently quite a long discussion on short interval timing - try a search on the forum for it, but I seem to recall we were talking about microseconds at best.


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
You might want to take a look at the QueryPerformanceCounter and its companion,
QueryPerformanceFrequency API calls. It won't give you nanosecond precision, but it will get you into microseconds.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks Cajun, that's the word I was struggling for!


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
The QueryPerformanceCounter has a resolution of .8 microseconds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top