reference/misc/functions/hrtime.xml
0c9c2dd669fe9395eaa73d487fbd160f9057429a
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>hrtime</methodname>
13
-
<methodparam choice="opt"><type>bool</type><parameter>get_as_number</parameter><initializer>&false;</initializer></methodparam>
12
+
<type class="union"><type>array</type><type>int</type><type>float</type><type>false</type></type><methodname>hrtime</methodname>
13
+
<methodparam choice="opt"><type>bool</type><parameter>as_number</parameter><initializer>&false;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<simpara>
16
16
Returns the system's high resolution time, counted from an arbitrary point in time.
...
...
@@ -23,7 +23,7 @@
23
23
<para>
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>get_as_number</parameter></term>
26
+
<term><parameter>as_number</parameter></term>
27
27
<listitem>
28
28
<para>
29
29
Whether the high resolution time should be returned as <type>array</type>
...
...
@@ -39,9 +39,10 @@
39
39
&reftitle.returnvalues;
40
40
<para>
41
41
Returns an array of integers in the form [seconds, nanoseconds], if the
42
-
parameter <parameter>get_as_number</parameter> is false. Otherwise the nanoseconds
42
+
parameter <parameter>as_number</parameter> is false. Otherwise the nanoseconds
43
43
are returned as <type>int</type> (64bit platforms) or <type>float</type>
44
44
(32bit platforms).
45
+
Returns &false; on failure.
45
46
</para>
46
47
</refsect1>
47
48

...
...
@@ -82,7 +83,6 @@ Array
82
83
</refsect1>
83
84

84
85
</refentry>
85
-

86
86
<!-- Keep this comment at the end of the file
87
87
Local variables:
88
88
mode: sgml
89
89