i write a code in netbeans and want to find the how much energy consumed when i run this code but i don't know how to calculate
i searched jRAPL tool but its only useful in linux environment. i don't want tools to calculate energy consumption i just want to calculate energy consumption of that particular code i have tried netbean profiler but profiler did not give me required results.
This is just as an example
for(double i=0;i<500000;i++) {
System.out.print("Test Purpose");
}