LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 07:26 AM   #1
perdesiz
Member
 
Registered: Aug 2003
Location: Turkey
Posts: 88

Rep: Reputation: 15
How can I create a predetermined amount of delay?


How can I create a predetermined amount of delay? Like like 432 usecs. by usig standard libraries..?
 
Old 10-17-2003, 08:45 AM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
I think you mean in bash?
Use sleep

man sleep
So...

sleep <nubmer>[s|m|h|d] && <program>
 
Old 10-17-2003, 08:53 AM   #3
perdesiz
Member
 
Registered: Aug 2003
Location: Turkey
Posts: 88

Original Poster
Rep: Reputation: 15
Thanx but as far as I can see sleep can generate multiples of seconds delay but I need MILI || MICRO seconds. So is there something to generate taht kind of delays?
Thanx for your response...
 
Old 10-17-2003, 09:04 AM   #4
vivekiyer
Member
 
Registered: Aug 2003
Location: AZ, USA
Distribution: Redhat 9.0
Posts: 45

Rep: Reputation: 15
Well the _sleep() function in C does take parameter in miliseconds. Though I am not sure if this will be useful in ur case
 
Old 10-17-2003, 09:42 AM   #5
perdesiz
Member
 
Registered: Aug 2003
Location: Turkey
Posts: 88

Original Poster
Rep: Reputation: 15
the_sleep()??I haven't heard about it. ..Let me check out.I hope I could help
 
Old 10-17-2003, 11:23 AM   #6
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Use sleep with a decimal number
So.. for 1/10th of a second use
sleep 0.1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make most amount of Linux users in least amount of time studpenguin General 24 02-02-2007 04:42 PM
A large amount of problems DaBlade Linux - General 4 12-04-2004 06:47 AM
installing redhat with predetermined module order JYDawg Red Hat 3 09-07-2004 10:58 AM
Amount of Threads Created X11 LQ Suggestions & Feedback 6 06-19-2002 03:42 PM
Amount of Threads Created X11 LQ Suggestions & Feedback 0 06-07-2002 01:14 AM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration