| 1 | |
| 2 | <refentry id="rtclock"> |
| 3 | <indexterm id="IndexRtclock"><primary>rtclock</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Time Reading</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>rtclock</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>rtclock</refname> |
| 13 | <refpurpose> |
| 14 | Read the real time clock from the operating system. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Read the real-time clock from the operating system. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ires <command>rtclock</command></synopsis> |
| 28 | |
| 29 | <synopsis>kres <command>rtclock</command></synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Performance</title> |
| 34 | <para> |
| 35 | Read the real-time clock from operating system. Under Windows, this changes only once per second. Under GNU/Linux, it ticks every microsecond. Performance under other systems varies. |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Examples</title> |
| 41 | <para> |
| 42 | Here is an example of the rtclock opcode. It uses the file <ulink url="examples/rtclock.csd"><citetitle>rtclock.csd</citetitle></ulink>. |
| 43 | <example> |
| 44 | <title>Example of the rtclock opcode.</title> |
| 45 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 46 | <xi:include href="examples-xml/rtclock.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 47 | </example> |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>See also</title> |
| 53 | <para><link linkend="ControlTimeread"><citetitle>Time Reading</citetitle></link></para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>Credits</title> |
| 58 | <para>Author: &namejohn;</para> |
| 59 | <para>New in version 4.10</para> |
| 60 | </refsect1> |
| 61 | </refentry> |