Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

time(1) [osx man page]

TIME(1) 						    BSD General Commands Manual 						   TIME(1)

NAME
time -- time command execution SYNOPSIS
time [-lp] utility DESCRIPTION
The time utility executes and times utility. After the utility finishes, time writes the total time elapsed, the time consumed by system overhead, and the time used to execute utility to the standard error stream. Times are reported in seconds. Available options: -l The contents of the rusage structure are printed. -p The output is formatted as specified by IEEE Std 1003.2-1992 (``POSIX.2''). The csh(1) has its own and syntactically different builtin version of time. The utility described here is available as /usr/bin/time to csh users. DIAGNOSTICS
The time utility shall exit with one of the following values: 1-125 An error occurred in the time utility. 126 The utility was found but could not be invoked. 127 The utility could not be found. Otherwise, the exit status of time shall be that of utility. SEE ALSO
csh(1), getrusage(2) FILES
/usr/include/sys/resource.h STANDARDS
The time utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). BUGS
The granularity of seconds on microprocessors is crude and can result in times being reported for CPU usage which are too large by a second. BSD
June 6, 1993 BSD

Check Out this Related Man Page

TIME(1) 						    BSD General Commands Manual 						   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 sec- onds): the total time elapsed, the time used to execute the utility process and the time consumed by system overhead. The following options are available: -a If the -o flag is used, append to the specified file rather than overwriting it. Otherwise, this option has no effect. -h Print times in a human friendly format. Times are printed in minutes, hours, etc. as appropriate. -l The contents of the rusage structure are printed as well. -o file Write the output to file instead of stderr. If file exists and the -a flag is not specified, the file will be overwritten. -p Makes time output POSIX.2 compliant (each time is printed on its own line). Some shells may provide a builtin time command which is similar or identical to this utility. Consult the builtin(1) manual page. If time receives a SIGINFO (see the status argument for stty(1)) signal, the current time the given command is running will be written to the standard output. ENVIRONMENT
The PATH environment variable is used to locate the requested utility if the name contains no '/' characters. EXIT STATUS
If utility could be timed successfully, its exit status is returned. If utility terminated abnormally, a warning message is output to stderr. If the utility was found but could not be run, the exit status is 126. If no utility could be found at all, the exit status is 127. If time encounters any other error, the exit status is between 1 and 125 included. SEE ALSO
builtin(1), csh(1), getrusage(2), wait(2) STANDARDS
The time utility is expected to conform to ISO/IEC 9945-2:1993 (``POSIX''). HISTORY
A time utility appeared in Version 3 AT&T UNIX. BSD
May 14, 2006 BSD
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DiffElapsed time between unix timestamps help needed...

Does anyone know a perl script/utility/etc. to calculate the time in seconds between two unix time stamps? Any help will be appreciated. -bozzhawg (1 Reply)
Discussion started by: bozzhawg
1 Replies

2. UNIX for Advanced & Expert Users

Caluculate time between 2 unix timestamps?

Does anyone know a perl script/utility/etc. to calculate the time in seconds between two unix time stamps? Any help will be appreciated. -bozzhawg (1 Reply)
Discussion started by: bozzhawg
1 Replies

3. UNIX for Advanced & Expert Users

output of the time command ?

can someone tell me the meaning of this commnad, If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter: time java myprog Replace myprog with the name of the program you are running. The following is an... (2 Replies)
Discussion started by: ldpathak
2 Replies

4. UNIX for Advanced & Expert Users

how does this work???

can someone tell me the meaning of this commnad, If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter: time java myprog Replace myprog with the name of the program you are running. The following is an... (1 Reply)
Discussion started by: ldpathak
1 Replies

5. IP Networking

UNIX talk

I have the manpage for this utility on my system, but the utility itself is not there. My friend has the utility, but it does not work, not even on the same machine. Does anyone remember it? What software package is it related to? Where is it configured? (1 Reply)
Discussion started by: Corona688
1 Replies

6. Shell Programming and Scripting

Help to switch dates from a file

Hi. I need some assistance with a file who at the end i must import to EXCEL. The problem is that i have a file with this inside: Output: JOBID START TIME END TIME ELAPSED CPU ------------------------------------------------------------ AVERAGE: ... (2 Replies)
Discussion started by: osramos
2 Replies

7. UNIX for Dummies Questions & Answers

ps command - time field

Hi all, Can someone extending on what the time field is explaining in a ps command. Man page only has this: time The cumulative execution time for the process. Is this a combined CPU time? if that is the case then it should be impossible to have a 00:00 time on any process. ... (1 Reply)
Discussion started by: nhatch
1 Replies

8. HP-UX

berkeley_db_svc utility

Hi Please can anyone tell me where to download berkeley_db_svc utility which is suppported for platform HP-UX 11i i hve found this utility for linux enviorment only Best Regards vasanth (1 Reply)
Discussion started by: vasanthan
1 Replies

9. Shell Programming and Scripting

time command

time command uses std. error to give its result. wn we type $ time cat new\ file 2>/dev/null its result shd not be printed. but its still being printed.. wts the prob ..?? eg . $ time cat new\ file #include<stdio.h> int main() { printf("%d",macro); } real 0m0.003s... (9 Replies)
Discussion started by: suhaas
9 Replies

10. UNIX for Dummies Questions & Answers

Get process's time value

Hi, I'm trying to learn csh so I've started to do some simple scrips. Now I'm kinda stuck in this one: I want to do a script that first search, for each user, if there's at least a process with a TIME >= something (30 mins, for example). There are 2 things that I cant figure out: - in the... (3 Replies)
Discussion started by: GarFunkel
3 Replies

11. Solaris

ps utility size 0

Hi all, The other day I had a strange behavior with a Netra T2000 with Solaris 10. When I tryied to run the ps utility it showed no output. Checking the /usr/bin I found that the size of ps is zero. Also other utilities like ptree, pstack also had size 0. :confused: I copied the ps from... (1 Reply)
Discussion started by: the noob
1 Replies

12. UNIX for Dummies Questions & Answers

file hashing utility in unix

I am looking for a utility that does file hashing in unix. ...Please let me know of any good easy to use utility (3 Replies)
Discussion started by: jbjoat
3 Replies

13. Shell Programming and Scripting

c program to a utility

Hi, I have a c program file.c i want to make this code a utility to use again and again in unix. can you please tell how i can make .c code file into a utility. Thanks (3 Replies)
Discussion started by: Learnerabc
3 Replies

14. AIX

AIX TIME CHANGE

Hi Guys , I see a weird problem with one of the AIX Machine, The time is changing randomly on the server. The seconds part of the time is what is the problem which is jumping on a uneven order and coming back to the original state after some time and again the same.. I have collected the time... (8 Replies)
Discussion started by: kkeng808
8 Replies