Time (Unix)

Time (Unix)

time ist ein Kommando auf Unix Betriebssystemen. Es wird dazu verwendet, um die Ausführungsdauer eines bestimmten anderen Kommandos zu messen. Um es zu benutzen wird das Wort time einfach vor das zu messende Kommando gestellt. Ein Beispiel ist:

time ls

Wenn das Kommando ausgeführt wurde, gibt time aus, wie lange die Ausführung hinsichtlich CPU Zeit, System CPU Zeit und Echtzeit benötigt hat. Das Ausgabeformat unterscheidet sich bei verschiedenen Versionen des Programms. Manche erzeugen zusätzliche Statistiken wie in folgendem Beispiel.

$ 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) kann als Programm (wie z. B. GNU time) oder in eingebaut in einer Shell implementiert sein (z. B. in tcsh oder zsh).

Arbeitsweise

Laut des Quellcodes der GNU Implementierung von time werden die Daten mithilfe des Systemaufrufs wait3 gesammelt. Auf Systemen, auf denen dieser nicht zur Verfügung steht, wird der Systemaufruf times verwendet.

Siehe auch

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужно сделать НИР?

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Time (Unix) — time is a command in the Unix operating systems. It is used to determine the duration of execution of a particular command.UsageTo use the command, simply precede any command by the word time, such as:time lsWhen the command completes, time will… …   Wikipedia

  • Time (Unix) — Эта статья об утилите; о формате кодирования времени см.: UNIX время. У этого термина существуют и другие значения, см. Time. time unix утилита, возвращающая время выполнения простой команды или получение подсказки по ресурсу. Когда команда… …   Википедия

  • time (Unix) — Эта статья об утилите; о формате кодирования времени см.: UNIX время. У этого термина существуют и другие значения, см. Time (значения). time unix утилита, возвращающая время выполнения простой команды или получение подсказки по ресурсу. Когда… …   Википедия

  • time (Unix) — time ist ein Kommando auf Unix Betriebssystemen. Es wird dazu verwendet, um die Ausführungsdauer eines bestimmten anderen Kommandos zu messen. Um es zu benutzen wird das Wort time einfach vor das zu messende Kommando gestellt. Ein Beispiel ist:… …   Deutsch Wikipedia

  • Time (disambiguation) — Time is a common term for the experience of duration, and a fundamental quantity of measuring systems.Time may also refer to: Books and magazines * Time (magazine) * , a novel by Stephen Baxter Film and television * Time (film) * Time (TV series) …   Wikipedia

  • Time (Begriffsklärung) — Time steht für: Time, ein US amerikanisches Magazin Time Inc., ein US amerikanisches Verlagsunternehmen, das unter anderem das vorgenannte Magazin herausgibt Time (Norwegen), eine Kommune in Norwegen Time (Band), eine jugoslawische Rock Gruppe… …   Deutsch Wikipedia

  • Time (значения) — Time (рус. время): Time  американский новостной журнал. Time  рассказ Уильяма Берроуза. time  unix утилита, возвращающая время выполнения простой команды или получение подсказки по ресурсу. Time Inc.  крупный издатель журналов …   Википедия

  • Time t — The time t datatype is a data type in the ISO C library defined for storing system time values. Such values are returned from the standard time() library function. This type is a typedef defined in the standard lt;time.h gt; header. ISO C defines …   Wikipedia

  • Unix time — Эта статья о формате кодирования времени; об утилите см.: time (Unix). UNIX время или POSIX время (англ. Unix time)  способ кодирования времени, принятый в POSIX совместимых операционных системах. Моментом начала отсчёта считается полночь (по… …   Википедия

  • UNIX time — Эта статья о формате кодирования времени; об утилите см.: time (Unix). UNIX время или POSIX время (англ. Unix time)  способ кодирования времени, принятый в POSIX совместимых операционных системах. Моментом начала отсчёта считается полночь (по… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”