Ancestors

Toot

Written by Branch Predictor :mycomputer: on 2024-08-21 at 17:47

Today I had to measure performance of some function running on some obscure ARM-derived hardware. Normally I'd just run it in a loop and measure how much it takes in total and per iteration, but due to its complexity and dependence on other factors, that wasn't an option. Since it took less than 1ms, I couldn't use regular timers and for odd reasons I couldn't use high-resolution clock. What did I do? I used a god damn oscilloscope to measure time the function kept debug pin in high state. It set it to high upon entry and reset it to low before exiting.

And it worked perfectly and gave me stable and reliable timings in μs.

[#]programming #embedded

=> More informations about this toot | More toots from branch300bpm@vivaldi.net

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113001263541110132
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
285.22758 milliseconds
Gemini-to-HTML Time
0.25036 milliseconds

This content has been proxied by September (3851b).