Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-10-2003, 06:43 AM   #1
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, 07:16 AM   #2
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?


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

All times are GMT -5. The time now is 09:02 AM.

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