Example to calculate CPU usage using stats available in Mbed OS.