Use Non-Frames Version Previous Page Next Page
Instrument Control: Clock Control

clockon, clockoff, readclock

          clockon   inum
          clockoff  inum
  ir      readclock inum

Description

Starts and stops one of a number of internal clocks, and reads the value of a clock.

Initialization

inum - the number of a clock. There are 32 clocks numbered 0 through 31. All other values are mapped to clock number 32.

ir - value at i-time, of the clock specified by inum

Performance

Between a clockon and a clockoff, the CPU time used, is accumulated in the clock. The precision is machine dependent, but is the millisecond range on UNIX and Windows systems.

readclock reads the current value of a clock at initialization time.

Author

John ffitch
University of Bath/Codemist Ltd.
Bath, UK
July, 1999
New in Csound version 3.56


Use Non-Frames Version Previous Page Next Page
Instrument Control: Clock Control