|
MHAA Timer Core v1.0.0
Wrapping timer counts and optional control
|
The Core borrows a 16-bit fake, snapshots its initial ticks, starts it, asks for elapsed ticks and stops it. The simulated counter does not advance by itself, so elapsed ticks are zero. Use the behavior test to follow an eight-bit wrap, a 32-bit wrap and optional capture from a different implementation.
The program uses the local fake to demonstrate injection. A concrete Adapter implementing the same Contract can be supplied to the same facade.
Build from this repository root. Set contract_include to the matching Contract's include/ directory. The value below applies to the MHAA development workspace. Both programs exit with status 0 on success and print no output. On Windows execute example.exe and behavior.exe.
See the behavior test for the additional cases described above.