Arduino example sketch that demonstrates a simple task scheduler, an ISR (interrupt) configuration, and a measurement of CPU utilization over one second.
Almost every standard library comes with a set of advanced math functions However, occasionally an implementation more closely tuned to your use case is needed