Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divivsion by 10 #8

Open
ShimchenkoMarina opened this issue Sep 6, 2021 · 2 comments
Open

Divivsion by 10 #8

ShimchenkoMarina opened this issue Sep 6, 2021 · 2 comments

Comments

@ShimchenkoMarina
Copy link

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.

@aservet1
Copy link

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.

@jose
Copy link

jose commented Jul 25, 2022

Thanks @aservet1 for clarifying. Does that mean jRAPL compute, out-of-box Joules per second?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants