LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-08-2004, 12:13 PM   #1
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
time command


When running the command 'time' it gives:

real 0m0.161s
user 0m0.070s
sys 0m0.070s

What actually is user time and system time? I don't understand the difference. Can someone explain? Thanks!

-twantrd
 
Old 12-08-2004, 12:25 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Code:
TIME(1)                

NAME
     time - time command execution

SYNOPSIS
     time [-al] [-h | -p] [-o file] utility [argument ...]

DESCRIPTION
     The time utility executes and times the specified utility.  After the
     utility finishes, time writes to the standard error stream, (in seconds):
     the total time elapsed, the time used to execute the utility process and
     the time consumed by system overhead.
Courtesy of `man 1 time`
 
Old 12-08-2004, 01:50 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Ahh thanks. My 'man time' didn't show that kind of description. Thank you!

-twantrd
 
Old 12-08-2004, 03:54 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Indeed. I should have mentioned that the description I posted was from a BSD machine. The reason I posted it was, like you, when I read the Linux man page for time I saw that it sucked
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command execution time minil Programming 10 08-20-2010 04:59 PM
what is the command 'time'? buuchanh Linux - Newbie 3 10-13-2005 01:46 PM
time command krock923 Programming 11 07-09-2005 04:46 PM
find command with time linuxtesting2 Linux - Newbie 1 09-22-2004 12:31 PM
redirecting out of 'time' command anandj Linux - Newbie 2 06-12-2004 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration