LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-08-2003, 04:52 AM   #1
LOUDSilence
Member
 
Registered: Oct 2003
Location: Sydney
Distribution: Red Hat 8
Posts: 77

Rep: Reputation: 15
A timer


I am writting a Linux version of a windows application I made for my company. One thing I am not sure on how to do is create a timer. When a staff member starts filling the application a timer starts and saves how long it took to complete. The timer is displayed in the status bar or window title (not important). This was quite easy to do in windows, is there a system timer routine that calls a function at an interval of my choosing?
 
Old 12-08-2003, 05:49 AM   #2
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Maybe the setitimer may solve your problem. I never actually used it, for these things i simply use a timestamp. However the manpage is quite clear imo.

#include <sys/time.h>
 
  


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


All times are GMT -5. The time now is 01:39 AM.

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