nanosecond timer

How cam I use the precison timer in a CPU to quantify time intervals with nanosecond range accuracy? I am looking for a simple way to time laser pulses for range finding.
vvv2003Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vvv2003Author Commented:
And you, as well.
0
dmitry_nCommented:
I think it's not a good idea to time with nanoseconds with CPU. Use specialized devices.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phoffric\Commented:
Just out of curiosity, what is the range, resolution, and accuracy are you looking for?

Just wondering how close can we get..

Do you have a real-time clock?
How many cpu core per processor, processors, and tasks do you have running concurrently during the tests?
How do you determine the events (interrupt, polling)?
How many increments of a memory location and/or register can you do in one micro-second?
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

LMiller7Commented:
Windows, along with Linux, is not a real time OS. No application has any guarantees when it will receive the CPU or for how long. There is really nothing that user level code can do about this. Kernel level code can disable interrupts and achieve quite good timing accuracy but this should be done only for very short time periods. Within limits and with difficulty Windows can achieve timing accuracy in the microsecond range. But no better.

For your purposes you really need external hardware.
0
vvv2003Author Commented:
Thank you all for your comments. Why was I directed to this website with what looked like assurance that an answer to my question was just seconds away (join....) when in fact this site did not and does not contain an answer to my original web query. At least an hour of my time was wasted dragging an inappropriate suspect onto this site.

I think there is no more reason to waste more time here. You should at least try to act professional if you put yourself out as professionals? I am not a programmer and never asked the web if there was a programming way to make the nanosecond timer. I am a physician and chemist researcher.
0
joseph_gormanCommented:
hmm... you asked a question and got an answer. You asked CAN I do this and we answered NO you can't. In re; "you're not a programmer", you posted this in a zone explicitly titled game PROGRAMMNG. what do you expect the experts in this zone to respond with? - programming ideas.

But I will stay professional and merely suggest that a google for nanosecond timer would yield http://www.experts-exchange.com/Programming/Languages/Java/Q_20834055.html as a first result.
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Game Programming

From novice to tech pro — start learning today.