Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
These are functions which can help profile code running on real hardware. They won't do anything useful in the emulator.
Call the functions as necessary.
Go to the source code of this file.
Macros | |
#define | STATIC static |
Silly redefinition to trick Doxygen into documenting a static function, which it otherwise ignores. | |
Functions | |
STATIC uint32_t | getCycleCount (void) |
Get current cycle count of processor for profiling. It is in 1/F_CPU units. This will actually compile down to be included in the code, itself, and "should" (does in all the tests I've run) execute in one clock cycle since there is no function call and rsr only takes one cycle to complete. | |
#define STATIC static |
Silly redefinition to trick Doxygen into documenting a static function, which it otherwise ignores.
|
inline |
Get current cycle count of processor for profiling. It is in 1/F_CPU units. This will actually compile down to be included in the code, itself, and "should" (does in all the tests I've run) execute in one clock cycle since there is no function call and rsr only takes one cycle to complete.
Note, this will always return zero on for the emulator