[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[2d56483] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[ac21604] | 7 | <!ENTITY time-download-http "&gnu-http;/time/time-&time-version;.tar.gz">
|
---|
[e1e58be] | 8 | <!ENTITY time-download-ftp " ">
|
---|
[d385aba] | 9 | <!ENTITY time-md5sum "d2356e0fe1c0b85285d83c6b2ad51b5f">
|
---|
| 10 | <!ENTITY time-size "584 KB">
|
---|
| 11 | <!ENTITY time-buildsize "4.0 MB (with tests)">
|
---|
[ac21604] | 12 | <!ENTITY time-time "0.1 SBU (with tests)">
|
---|
[2d56483] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="time" xreflabel="time-&time-version;">
|
---|
| 16 | <?dbhtml filename="time.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Time-&time-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="time">
|
---|
| 22 | <primary sortas="a-time">time</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Time</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>time</application> utility is a program that
|
---|
| 30 | measures many of the CPU resources, such as time and memory, that
|
---|
| 31 | other programs use. The GNU version can format the output in
|
---|
| 32 | arbitrary ways by using a printf-style format string to include
|
---|
| 33 | various resource measurements.
|
---|
| 34 | </para>
|
---|
| 35 | <para>
|
---|
| 36 | Although the shell has a builtin command providing similar
|
---|
[ac21604] | 37 | functionalities, this utility is required by the LSB.
|
---|
[2d56483] | 38 | </para>
|
---|
| 39 |
|
---|
[aa996df1] | 40 | &lfs122_checked;
|
---|
[2d56483] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&time-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&time-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &time-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &time-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &time-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &time-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2 role="installation">
|
---|
| 79 | <title>Installation of Time</title>
|
---|
| 80 |
|
---|
| 81 | <para>
|
---|
| 82 | Install <application>Time</application> by running the following
|
---|
| 83 | commands:
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
[ac21604] | 86 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[2d56483] | 87 | make</userinput></screen>
|
---|
| 88 |
|
---|
| 89 | <para>
|
---|
[ac21604] | 90 | To test the results, issue: <command>make check</command>.
|
---|
[2d56483] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para>
|
---|
| 94 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="content">
|
---|
| 101 | <title>Contents</title>
|
---|
| 102 |
|
---|
| 103 | <segmentedlist>
|
---|
[752ca2d] | 104 | <segtitle>Installed Program</segtitle>
|
---|
[ac21604] | 105 | <segtitle>Installed Library</segtitle>
|
---|
| 106 | <segtitle>Installed Directory</segtitle>
|
---|
| 107 |
|
---|
[2d56483] | 108 | <seglistitem>
|
---|
| 109 | <seg>
|
---|
[752ca2d] | 110 | time
|
---|
[2d56483] | 111 | </seg>
|
---|
[ac21604] | 112 | <seg>
|
---|
| 113 | None
|
---|
| 114 | </seg>
|
---|
| 115 | <seg>
|
---|
| 116 | None
|
---|
| 117 | </seg>
|
---|
[2d56483] | 118 | </seglistitem>
|
---|
| 119 | </segmentedlist>
|
---|
| 120 |
|
---|
| 121 | <variablelist>
|
---|
| 122 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 123 | <?dbfo list-presentation="list"?>
|
---|
| 124 | <?dbhtml list-presentation="table"?>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="time-prog">
|
---|
| 127 | <term><command>time</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>
|
---|
[4c24eb0a] | 130 | reports various statistics about an executed command
|
---|
[2d56483] | 131 | </para>
|
---|
| 132 | <indexterm zone="time time-prog">
|
---|
| 133 | <primary sortas="b-time">time</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 | </variablelist>
|
---|
| 138 | </sect2>
|
---|
[4c24eb0a] | 139 |
|
---|
[2d56483] | 140 | </sect1>
|
---|