Search: in
Time (Unix)
Time (Unix) Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Time_(Unix) Email this to a friend      Time_(Unix)

Time (Unix)

time is a command in the Unix operating systems. It is used to determine the duration of execution of a particular command.

Contents


Usage

To use the command, simply precede any command by the word time, such as:

When the command completes, time will report how long it took to execute the ls command in terms of user CPU time, system CPU time, and real time. The output format varies between different versions of the command, and some give additional statistics, as in this example:

$ time host wikipedia.org
wikipedia.org has address 207.142.131.235
0.000u 0.000s 0:00.17 0.0%      0+0k 0+0io 0pf+0w
$

time(1) can exist as a standalone program (such as GNU time) or as a shell builtin (e.g. in tcsh or in zsh).

User Time vs System Time

The term 'user CPU time' can be a bit misleading at first. To be clear the total time (real CPU time), is the combination of the amount of time the CPU spends performing some action for a program and the amount of time the CPU spends performing system calls for the kernel on the program's behalf. When a program loops through an array, it is accumulating user CPU time. Conversely, when a program executes a system call such as exec or fork, it is accumulating system CPU time.

Method of operation

According to the source code of the GNU implementation of time, most information shown by time is derived from the wait3 system call. On systems that do not have a wait3 call that returns status information, the times system call is used instead.

See also

References

de:Time (Unix) pl:Time (Unix) ru:Time (Unix)





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Time (Unix)

Search for Time (Unix) in Tutorials
Search for Time (Unix) in Encyclopedia
Search for Time (Unix) in Dictionary
Search for Time (Unix) in Open Directory
Search for Time (Unix) in Store
Search for Time (Unix) in PriceGig



Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Time (Unix)
Time_(Unix) top Time_(Unix)

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement