Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-23-2003, 09:29 PM   #1
LQ Newbie
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
Timer questions

I'm using C/C++ on a Mandrake 9 system. I would like to be able to time how long it takes a process to run. I would also like to be able to control when a process starts and stops using timer control. I'm having no success getting ITIMER, SIGALRM, etc. to work properly. Any suggestions?
Gobo Fraggle,

(Between Fraggle Rock and a hard place.)
Old 04-23-2003, 09:58 PM   #2
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
have you looked into the <time.h> library?
it has time functions in it.
Old 04-23-2003, 10:14 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
I'm having no success getting ITIMER, SIGALRM, etc. to work properly.
Which "improper" results are you getting?
It's a bit hard to help without a background :}

Maybe you can find what you need using search?

Old 04-23-2003, 10:36 PM   #4
LQ Newbie
Registered: Jan 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I think I've figured out what I need but thanks anyway.
Gobo Fraggle.

Last edited by GoboFraggle; 04-24-2003 at 04:16 AM.


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
First timer Cyberian Linux From Scratch 3 04-19-2005 12:27 PM
First Timer, Hardware and OS Questions... gweeble Linux - Newbie 1 02-04-2005 04:01 PM
First timer with several questions William Zellman Linux - Newbie 10 09-26-2004 05:26 PM
First timer, help!!!!! jcniest5 Linux - Newbie 7 02-24-2004 08:32 AM
A timer LOUDSilence Programming 1 12-08-2003 05:49 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration