cvs: phpdoc-pl /reference/datetime/functions microtime.xml
| From: | Leszek Krupinski | Date: | Sat, 15 Jun 2002 02:01:33 +0000 |
| Subject: | cvs: phpdoc-pl /reference/datetime/functions microtime.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969346479@lists.php.net to get a copy of this message | ||
leszek Fri Jun 14 22:01:33 2002 EDT
Added files:
/phpdoc-pl/reference/datetime/functions microtime.xml
Log:
[qrak] Datetime upload
Index: phpdoc-pl/reference/datetime/functions/microtime.xml
+++ phpdoc-pl/reference/datetime/functions/microtime.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.1 Maintainer: Qrak Status: ready -->
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
<refentry id="function.microtime">
<refnamediv>
<refname>microtime</refname>
<refpurpose>
Zwraca aktualny uniksowy znacznik czasu z mikrosekundami
</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>string</type><methodname>microtime</methodname>
<void/>
</methodsynopsis>
<para>
Zwraca ³añcuch znaków "msec sec", gdzie sec jest aktualnym czasem,
mierzonym jako liczba sekund od uniksowej Epoki (1 stycznia 1970, 0:00:00
GMT), natomiast msec jest aktualn± liczb± mikrosekund. Funkcja ta dostêpna
jest wy³±cznie na systemach operacyjnych, które obs³uguj± wywo³anie
systemowe gettimeofday().
</para>
<para>
Obydwie czê¶ci ³añcucha znaków s± podawane w sekundach.
<example>
<title>przyk³ad <function>microtime</function></title>
<programlisting role="php">
<![CDATA[
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
for ($i=0; $i < 1000; $i++){
//nie rób nic przez 1000 iteracji
}
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Nie robi³ nic przez $time sekund";
]]>
</programlisting>
</example>
</para>
<para>
Patrz tak¿e <function>time</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->