LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-10-2003, 07:43 AM   #1
perdesiz
Member
 
Registered: Aug 2003
Location: Turkey
Posts: 88

Rep: Reputation: 15
how to adjust a timer????


I am programming in c and using gcc in RedHat.My question is:How may I adjust a timer that counts down for a given time period?
 
Old 09-10-2003, 08:16 AM   #2
esben
Member
 
Registered: Jun 2003
Location: Copenhagen, Denmark
Distribution: Gentoo
Posts: 48

Rep: Reputation: 15
Well, without more specifics I can only list some man pages:

man alarm -- send a signal to a process in x seconds
man pause -- wait for signal
man sleep -- wait x seconds
man select -- wait for input. With no input, useful as a fine-grained sleep
man fork -- create an additional process (useful to do something after a sleep/select)

What exactly did you have in mind?
 
  


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
About timer.... help rajsun Programming 3 05-24-2005 07:06 AM
timer in c?? AcidHell2 Programming 9 08-12-2004 02:01 AM
First timer, help!!!!! jcniest5 Linux - Newbie 7 02-24-2004 09:32 AM
timer... perdesiz Linux - Software 1 09-18-2003 04:39 AM
QT Timer kusio Linux - Software 1 04-15-2003 06:48 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration