<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Time Reading</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="ControlTop.html" title="Instrument Control" /> <link rel="prev" href="ControlSubinstrument.html" title="Sub-instrument Control" /> <link rel="next" href="TableTop.html" title="Function Table Control" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Time Reading</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="ControlSubinstrument.html">Prev</a> </td> <th width="60%" align="center">Instrument Control</th> <td width="20%" align="right"> <a accesskey="n" href="TableTop.html">Next</a></td> </tr> </table> <hr /> </div> <div class="section"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="ControlTimeread"></a>Time Reading</h2> </div> </div> </div> <p> Opcodes one can use to read time values are: </p> <div class="itemizedlist"> <ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <p> <a class="link" href="readclock.html" title="readclock"> <em class="citetitle">readclock</em> </a> </p> </li> <li class="listitem"> <p> <a class="link" href="rtclock.html" title="rtclock"> <em class="citetitle">rtclock</em> </a> </p> </li> <li class="listitem"> <p> <a class="link" href="timeinstk.html" title="timeinstk"> <em class="citetitle">timeinstk</em> </a> </p> </li> <li class="listitem"> <p> <a class="link" href="timeinsts.html" title="timeinsts"> <em class="citetitle">timeinsts</em> </a> </p> </li> <li class="listitem"> <p> <a class="link" href="times.html" title="times"> <em class="citetitle">times</em> </a> </p> </li> <li class="listitem"> <p> <a class="link" href="timek.html" title="timek"> <em class="citetitle">timek</em> </a> </p> </li> </ul> </div> <p> </p> <p> You can obtain the system date using: </p> <div class="itemizedlist"> <ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <p><a class="link" href="date.html" title="date"><em class="citetitle">date</em></a> - Returns the number seconds since 1 January 1970.</p> </li> <li class="listitem"> <p><a class="link" href="dates.html" title="dates"><em class="citetitle">dates</em></a> - Returns as a string the date and time specified.</p> </li> </ul> </div> <p> </p> <p> You can also set up counters using <a class="link" href="clockoff.html" title="clockoff"><em class="citetitle">clockoff</em></a> and <a class="link" href="clockon.html" title="clockon"><em class="citetitle">clockon</em></a>. </p> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="ControlSubinstrument.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ControlTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="TableTop.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Sub-instrument Control </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Function Table Control</td> </tr> </table> </div> </body> </html>