cyclecounter

Outputs the cpu clock cycle counter, a 32bit integer incrementing on every clock cycle. Useful for benchmarking objects.
Author: Johannes Taelman
License: BSD
Github: patch/cyclecounter.axo

Inlets

None

Outlets

int32 cpu time in ticks

Control Rate
asm volatile("mov r0, r0");
outlet_t = hal_lld_get_counter_value();
asm volatile("mov r0, r0");

Privacy

© 2024 Zrna Research