Regulate breathing interval + optimize

Added `engine.Hz` to regulate the number of breaths per second. (default: 10,000 i.e. one breath per 100us.)

Added small optimizations and optimization-oriented diagnostics.