Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Prof.O: Measures time taken (in microseconds) of an arbitrary routine.

Started by m_dr_m, 08:47, 20 June 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Thanks to @toms we can measure the exact duration of (almost) any routine!

Use cases:
  • Check a code snippet takes exactly 64 NOPs, without having to count yourself ( Note: this involves some manipulation, so that's not yet as handy as with rasm. On the other hand, the manipulation itself can be written down in the source (e.g. in a conditional "IF profiling" section).
  • Measure average/maximum time taken by a music player.
  • Ensure a routine doesn't slow down over modifications, with automated tests.

This is distributed with orgams (, but doesn't require orgams.
  • * prof.o: orgams version
  • * prof.asm: ascii version

Powered by SMFPacks Menu Editor Mod