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

  <refnamediv>
    <refname>clockon</refname>

    <refpurpose>
      Starts one of a number of internal clocks.
      <indexterm id="IndexClockon"><primary>clockon</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Starts one of a number of internal clocks.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>clockon</command> inum</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>inum</emphasis> -- the number of a clock.  There are 32 clocks numbered 0 through 31. All other values are mapped to clock number 32.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      Between a <emphasis>clockon</emphasis> and a <link linkend="clockoff"><citetitle>clockoff</citetitle></link> opcode, the CPU time used is accumulated in the clock. The precision is machine dependent but is the millisecond range on UNIX and Windows systems. The <link linkend="readclock"><citetitle>readclock</citetitle></link> opcode reads the current value of a clock at initialization time.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      See the <link linkend="readclock"><citetitle>readclock</citetitle></link> opcode for an example.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="clockoff"><citetitle>clockoff</citetitle></link>, <link linkend="readclock"><citetitle>readclock</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn;</member>
        <member>University of Bath/Codemist Ltd.</member>
        <member>Bath, UK</member>
        <member>July, 1999</member>
      </simplelist>
    </para>

    <para>New in Csound version 3.56</para>
  </refsect1>
</refentry>
