You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in the example (EnergyCheckUtils.java) to output energy you divide it by 10 - (after[0] - before[0]) / 10.0. I really struggle to understand why. Moreover, I think it is incorrect. If we print Jouls, then no division is required. Please let me know if it is done on purpose and I just missed something.
The text was updated successfully, but these errors were encountered:
It's because the code is measuring power, not energy. The period of energy measurement was 10 seconds, so he divides joules by number of seconds to get watts.
Hi, in the example (EnergyCheckUtils.java) to output energy you divide it by 10 - (after[0] - before[0]) / 10.0. I really struggle to understand why. Moreover, I think it is incorrect. If we print Jouls, then no division is required. Please let me know if it is done on purpose and I just missed something.
The text was updated successfully, but these errors were encountered: