CVS update: php3/doc/functions
| From: | sas | Date: | Wed, 20 Jan 1999 21:16:09 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3648@lists.php.net to get a copy of this message | ||
Date: Wednesday January 20, 1999 @ 16:16
Author: sas
Update of /repository/php3/doc/functions
In directory asf:/u/temp/cvs-serv5277/functions
Modified Files:
datetime.sgml info.sgml
Log Message:
add documentation for gettimeofday and getrusage
Index: php3/doc/functions/datetime.sgml
diff -c php3/doc/functions/datetime.sgml:1.23 php3/doc/functions/datetime.sgml:1.24
*** php3/doc/functions/datetime.sgml:1.23 Mon Jan 18 07:53:09 1999
--- php3/doc/functions/datetime.sgml Wed Jan 20 16:16:08 1999
***************
*** 212,217 ****
--- 212,241 ----
</refsect1>
</refentry>
+ <refentry id="function.gettimeofday">
+ <refnamediv>
+ <refname>gettimeofday</refname>
+ <refpurpose>get current time</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>array <function>gettimeofday</function></funcdef>
+ <paramdef>void</paramdef>
+ </funcsynopsis>
+ <para>
+ This is an interface to gettimeofday(2). It returns an
+ associative array containing the data returned from the
+ system call.
+ <itemizedlist>
+ <listitem><simpara>"sec" - seconds</simpara></listitem>
+ <listitem><simpara>"usec" -
microseconds</simpara></listitem>
+ <listitem><simpara>"minuteswest" - minutes west of
Greenwich</simpara></listitem>
+ <listitem><simpara>"dsttime" - type of dst
correction</simpara></listitem>
+ </itemizedlist>
+ </para>
+ </refsect1>
+ </refentry>
<refentry id="function.gmdate">
<refnamediv>
Index: php3/doc/functions/info.sgml
diff -c php3/doc/functions/info.sgml:1.10 php3/doc/functions/info.sgml:1.11
*** php3/doc/functions/info.sgml:1.10 Sun Jan 3 12:31:39 1999
--- php3/doc/functions/info.sgml Wed Jan 20 16:16:08 1999
***************
*** 383,388 ****
--- 383,420 ----
</refsect1>
</refentry>
+ <refentry id="function.getrusage">
+ <refnamediv>
+ <refname>getrusage</refname>
+ <refpurpose>Get the current resource usages.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>array <function>getrusage</function></funcdef>
+ <paramdef>int
<parameter><optional>who</optional></parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ This is an interface to getrusage(2). It returns an associative array
+ containing the data returned from the system call. If who is 1, getrusage
+ will be called with RUSAGE_CHILDREN.
+
+ All entries are accessible by using their documented field names.
+
+ <example><programlisting>
+ $dat = getrusage();
+ echo $dat["ru_nswap"]; # number of swaps
+ echo $dat["ru_majflt"]; # number of page faults
+ echo $dat["ru_utime.tv_sec"]; # user time used (seconds)
+ echo $dat["ru_utime.tv_usec"]; # user time used (microseconds)
+ </programlisting></example>
+
+ See your system's man page for more details.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.phpinfo">
<refnamediv>
<refname>phpinfo</refname>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net