seoul Posted May 19, 2006 Report Share Posted May 19, 2006 as the topic, i want the wait time less than 1ms. At the same time, i cannot use an empty loose to generate the wait time, for it will take the CPU time. Thank you! :worship: Quote Link to comment
Michael Aivaliotis Posted May 19, 2006 Report Share Posted May 19, 2006 as the topic, i want the wait time less than 1ms. At the same time, i cannot use an empty loose to generate the wait time, for it will take the CPU time.Thank you! :worship: What are you trying to time? If you need more precision down to <1ms, you need to switch to a real-time target. I'm not sure I understand the reason. Quote Link to comment
Rolf Kalbermatter Posted May 21, 2006 Report Share Posted May 21, 2006 as the topic, i want the wait time less than 1ms. At the same time, i cannot use an empty loose to generate the wait time, for it will take the CPU time.Thank you! :worship: As Michael said you can't really get a higher resolution than 1ms under Windows or any other Desktop OS. Under Windows and other Desktop OSes even specifying 1ms will seldom get you exactly 1ms delay but can vary with several ms and at least under Windows with a network card installed and one or more other applications running can sometimes exceed 100ms. You might be able to get a 1ms resolution quite reliably with a timed loop but for better you will have to go real time without any doubt. Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.