<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="times">
  <refmeta>
    <refentrytitle>times</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>times</refname>

    <refpurpose>
      Read absolute time in seconds.
      <indexterm id="IndexTimes"><primary>times</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Read absolute time, in seconds, since the start of the performance.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ir <command>times</command></synopsis>

    <synopsis>kr <command>times</command></synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      Time in seconds is available with <emphasis>times</emphasis>. This would return 0.5 after half a second. 
    </para>

    <para>
      <emphasis>times</emphasis> can both produce a k-rate variable for output. There are no input parameters.
    </para>

    <para>
      <emphasis>times</emphasis> can also operate at the start of the instance of the instrument. It produces an i-rate variable (starting with <emphasis>i</emphasis> or <emphasis>gi</emphasis>) as its output.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the times opcode. It uses the files <ulink url="examples/times.orc"><citetitle>times.orc</citetitle></ulink> and <ulink url="examples/times.sco"><citetitle>times.sco</citetitle></ulink>.

      <example>
        <title>Example of the times opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/times.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/times.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include lines like this:
      <screen>
k1 = 0.000227 seconds
k1 = 0.500000 seconds
k1 = 1.000000 seconds
k1 = 1.500000 seconds
k1 = 2.000000 seconds
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="timeinstk"><citetitle>timeinstk</citetitle></link>, <link linkend="timeinsts"><citetitle>timeinsts</citetitle></link>, <link linkend="timek"><citetitle>timek</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: Robin Whittle</member>
        <member>Australia</member>
        <member>May 1997</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
