<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="cpuclock" module="max" category="Timing">
	<digest>
		Retrieve the CPU time
	</digest>
	<description>
		Accesses a precise value from the system timer. This allows for timing calculations with very high resolution.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Timing
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Bang to get the current system time.
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Current system time.
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output a time value
			</digest>
			<description>
				<m>bang</m> causes the current time to be output. The time value is calculated from when Max is launched (starting from 0.0).
			</description>
		</method>
		<method name="reset">
			<arglist />
			<digest>
				Reset timer value
			</digest>
			<description>
				Resets the system timer value to 0.0.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="cpuclock.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="metro" />
		<seealso name="translate" />
		<seealso name="timepoint" />
		<seealso name="transport" />
		<seealso name="when">
			Obtain the current time of a transport
		</seealso>
	</seealsolist>
	<discussion>
		While most Max timing references &quot;logical&quot; time derived from Max's millisecond scheduler, time values produced by the <o>cpuclock</o> object are referenced from the CPU clock and can be used to time real world events with microsecond precision.
	</discussion>
	<misc name="Output">
		<entry name="float">
			<description>
				The current time, in milliseconds.
			</description>
		</entry>
	</misc>
</c74object>
