This article is about a Unix command. If you are looking for Unix's means of representing points in time, see Unix time.
time is a command in the UNIX Operating System. It is used to determine the duration of execution of a particular command. To use the command, simply precede any command by the word time, such as:
time ls
When the command completes, time will report how long it took to execute 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 $
Unixtime, or POSIX time, is a system for describing points in time: it is the number of seconds elapsed since midnight UTC on the morning of January 1, 1970, not counting leap seconds.
The Unix epoch is the time 00:00:00 UTC on January 1, 1970.
Instead, times with sub-second precision are represented using compound data types that consist of two integers, the first being a time_t (the integral part of the Unixtime), and the second being the fractional part of the time number in millionths (in struct timeval) or billionths (in struct timespec).