13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="timer" xml:lang="en">
15
<refname>timer</refname>
16
<refpurpose>cpu time</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>timer()</synopsis>
23
<title>Description</title>
24
<para>Returns the CPU time since the preceding call to
25
<literal>timer()</literal>.
27
<para>timer has a time precision of 100 nanoseconds.</para>
28
<para>NOTE: CPU time is the number of processor cycles used for a
29
computation. This is not at all equivalent to real-world time.
31
<para>CPU time can be used to compare CPU usage between different programs
32
or functions , irrespective of background processes that might slow down
37
<title>Examples</title>
38
<programlisting role="example"><![CDATA[
15
<refname>timer</refname>
16
<refpurpose>cpu time</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>timer()</synopsis>
23
<title>Description</title>
24
<para>Returns the CPU time since the preceding call to
25
<literal>timer()</literal>.
27
<para>timer has a time precision of 100 nanoseconds.</para>
28
<para>NOTE: CPU time is the number of processor cycles used for a
29
computation. This is not at all equivalent to real-world time.
31
<para>CPU time can be used to compare CPU usage between different programs
32
or functions , irrespective of background processes that might slow down
37
<title>Examples</title>
38
<programlisting role="example"><![CDATA[
39
39
timer();A=rand(100,100);timer()
40
40
]]></programlisting>
42
<refsection role="see also">
43
<title>See Also</title>
44
<simplelist type="inline">
46
<link linkend="getdate">getdate</link>
49
<link linkend="toc">toc</link>
52
<link linkend="tic">tic</link>
55
<link linkend="etime">etime</link>
42
<refsection role="see also">
43
<title>See Also</title>
44
<simplelist type="inline">
46
<link linkend="getdate">getdate</link>
49
<link linkend="toc">toc</link>
52
<link linkend="tic">tic</link>
55
<link linkend="etime">etime</link>