PIC24-30-33: Optimized CPU load measurement