Debian Codegraph @

opcodes/clockon.xml

raw symbols SCIP
1
2 <refentry id="clockon">
3 <indexterm id="IndexClockon"><primary>clockon</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Clock Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>clockon</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>clockon</refname>
13
14 <refpurpose>
15 Starts one of a number of internal clocks.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Starts one of a number of internal clocks.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>clockon</command> inum</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <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.
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Performance</title>
40 <para>
41 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.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Examples</title>
47 <para>
48 Here is an example of the clockon opcode. It uses the file <ulink url="examples/clockon.csd"><citetitle>clockon.csd</citetitle></ulink>.
49
50 <example>
51 <title>Example of the clockon opcode.</title>
52
53
54
55 <xi:include href="examples-xml/clockon.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
56 </example>
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>See also</title>
62 <para><link linkend="ControlClockctl"><citetitle>Clock Control</citetitle></link></para>
63 </refsect1>
64
65 <refsect1>
66 <title>Credits</title>
67 <para>
68 <simplelist>
69 <member>Author: &namejohn;</member>
70 <member>University of Bath/Codemist Ltd.</member>
71 <member>Bath, UK</member>
72 <member>July, 1999</member>
73 </simplelist>
74 </para>
75
76 <para>New in Csound version 3.56</para>
77 </refsect1>
78 </refentry>