Sponsored Content
Top Forums Programming Introducing Delay less then a second. Post 52203 by S.Vishwanath on Monday 14th of June 2004 01:42:25 AM
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.
 

3 More Discussions You Might Find Interesting

1. 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

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.

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
PAM_FAILDELAY(8)						 Linux-PAM Manual						  PAM_FAILDELAY(8)

NAME
pam_faildelay - Change the delay on failure per-application SYNOPSIS
pam_faildelay.so [debug] [delay=microseconds] DESCRIPTION
pam_faildelay is a PAM module that can be used to set the delay on failure per-application. If no delay is given, pam_faildelay will use the value of FAIL_DELAY from /etc/login.defs. OPTIONS
debug Turns on debugging messages sent to syslog. delay=N Set the delay on failure to N microseconds. MODULE TYPES PROVIDED
Only the auth module type is provided. RETURN VALUES
PAM_IGNORE Delay was successful adjusted. PAM_SYSTEM_ERR The specified delay was not valid. EXAMPLES
The following example will set the delay on failure to 10 seconds: auth optional pam_faildelay.so delay=10000000 SEE ALSO
pam_fail_delay(3), pam.conf(5), pam.d(5), pam(7) AUTHOR
pam_faildelay was written by Darren Tucker <dtucker@zip.com.au>. Linux-PAM Manual 06/04/2011 PAM_FAILDELAY(8)
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy