A newer version of Max is available. Click here to access the latest version of the documentation

cpuclock Reference

Retrieve the CPU time

cpuclock

Description

Accesses a precise value from the system timer. This allows for timing calculations with very high resolution.

Examples

Discussion

While most Max timing references "logical" time derived from Max's millisecond scheduler, time values produced by the cpuclock object are referenced from the CPU clock and can be used to time real world events with microsecond precision.

Arguments

None.

Attributes

Common Box Attributes

Messages

bang

bang causes the current time to be output. The time value is calculated from when Max is launched (starting from 0.0).

reset

Resets the system timer value to 0.0.

Output

float

The current time, in milliseconds.

See Also

Name Description
metro
translate
timepoint
transport
when