| 1 | |
| 2 | <refentry id="eventtime"> |
| 3 | <indexterm id="IndexEventtime"><primary>eventtime</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Time Reading</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>eventtime</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>eventtime</refname> |
| 11 | <refpurpose> |
| 12 | Read absolute time in seconds. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Read absolute time, in seconds, since the start of an instance of an instrument. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>kres <command>eventtime</command></synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | Time in seconds is available with <emphasis>eventtime</emphasis>. This |
| 32 | would return 0.5 after half a second. |
| 33 | </para> |
| 34 | |
| 35 | <para> |
| 36 | <emphasis>eventtime</emphasis> produces a k-rate variable for output. |
| 37 | There are no input parameters. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>eventtime</emphasis> is similar to |
| 42 | <link linkend="elapsedtime"><citetitle>elapsedtime</citetitle></link> |
| 43 | except it returns the time since the start of this instance of the |
| 44 | instrument. |
| 45 | </para> |
| 46 | |
| 47 | <note> |
| 48 | <para> |
| 49 | <emphasis>eventtime</emphasis> acts like |
| 50 | <link linkend="timeinsts"><citetitle>timeinsts</citetitle></link> but it |
| 51 | returns the correct values instead of being one cycle late. |
| 52 | </para> |
| 53 | </note> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>See also</title> |
| 58 | <para><link linkend="ControlTimeread"><citetitle>Time Reading</citetitle></link></para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Credits</title> |
| 63 | <para> |
| 64 | <simplelist> |
| 65 | <member>Author: &nameeduardo;</member> |
| 66 | <member>August 2022</member> |
| 67 | </simplelist> |
| 68 | </para> |
| 69 | </refsect1> |
| 70 | </refentry> |