LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2001, 03:11 PM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
timing a process


Hello all,

How can I time and record how long a certain process took? For example, I execute many jobs from a terminal and I am wondering exactly how long it took to do.

Thanks,

Jon
 
Old 09-17-2001, 08:15 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,593
Blog Entries: 47

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
if you're starting em from scripts and you use bash, you could try using $SECONDS at the end of the script like: echo "$(basename $0) finished in $SECONDS"
 
Old 10-11-2001, 07:10 AM   #3
rahul
LQ Newbie
 
Registered: Oct 2001
Location: India
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Post

man time

you can use time command followed by executable name.

regards
 
Old 10-11-2001, 04:33 PM   #4
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
well... i don't know how to time a process from the shell, but it's pretty easy to do in a program. failing anything else, you could write a small program that would execute a program and time it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhdpcd timing out jplev22 Linux - Wireless Networking 9 09-12-2005 02:30 PM
Timing issues eagle683 Programming 4 06-01-2005 01:35 PM
timing a function saajii Programming 1 10-25-2004 02:37 AM
mencoder timing delos Linux - Software 1 09-27-2004 02:24 PM
timing in c++ deveraux83 Programming 2 04-20-2004 05:34 PM


All times are GMT -5. The time now is 11:36 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
Open Source Consulting | Domain Registration