Introducing Delay less then a second.


 
Thread Tools Search this Thread
Top Forums Programming Introducing Delay less then a second.
# 1  
Old 06-14-2004
Introducing Delay less then a second.

Hi,

I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.

Now I'm bothered about how to introduce a delay that is just
less than a second. Like some amount of milli or microsecond delay.

Drivers that are associated with physical devices some time
requires to have a delay of some microsceonds for getting a
result of a query that has been submitted to the device.

So, how to introduce this microsecond delay. Probably like
we might requre some microseconds as the poling interval.

So, how to achieve this.

Let me know your ideas.

Regards

Vishwa.
# 2  
Old 06-14-2004
Code:
shell% man nanosleep

# 3  
Old 06-14-2004
Code:
shell% man select

=)
# 4  
Old 06-14-2004
Hi

Thanks for both Rusell & Drivers.
This was just great for me.

Well then how different are the alarm() & ualarm().
Can we use them also. I'm bit puzzled with them.

Again Thanks for all your quick responses.

Regards

Vishwa.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. What is on Your Mind?

Introducing Myself.

Hello! I didn't see an Introduce Yourself/Meet and Greet board, so I think this might be the right place. I'm a student and a new coder. I run Ubuntu 11.10 currently, and I program in Python, and I'm learning a few languages alongside. Random pages: Twitter - @NihilusV, other links can... (1 Reply)
Discussion started by: NihilusV
1 Replies

2. Programming

Introducing a new project for AI lovers

Hi guys, I'm the maintainer of Imperfect world of Robots, and I'm here to introduce this project to any AI lover. This is a free (as in freedom) software and release under the terms of GNU General Public License. Although it belongs to the programming game category, it's not only about... (0 Replies)
Discussion started by: aidin_36
0 Replies

3. What is on Your Mind?

Introducing myself... :D

Hey guys, I am Shelby! :-) I am 13 years old and i love Unix. When i was about 6 i was introduced to computers, because almost all of my family is comprised of artists, i used macs at a very early age. I generally sat on the computer until the time i was about 10 when i walked into a laptop store... (2 Replies)
Discussion started by: mesaynaysayer
2 Replies
Login or Register to Ask a Question