Skip to content

command.timestamp

← command dialect

Capture the executing queue family's clock into one naturally aligned 64-bit destination. The destination is an unencoded view<1xi64>; its bits contain raw unsigned ticks, not a duration or host time. Clock frequency and valid width belong to the execution domain. Serial and concurrent command regions determine ordering, just as for dispatches. Capture is a nondeterministic storage write; it does not synchronize the host or other queues. Successful program completion makes the sample valid, including a sample whose value is zero.

Operation contract

Property Value
Semantic phase executable
Traits CommandEffect
Memory effects write target

Signature

Kind Name Type Cardinality Description
Operand target view required Eight-byte-aligned destination for one raw clock sample.

Examples

command.timestamp %sample : view<1xi64>