i want to know the amount of energy that a running application consumes in a particular period of time, i found how to get all the running application from task manager in java but i didin't know how to calculate their energy consumption.
thanks

Je voudrais savoir la quantité d'énergie que consomme une application au cours d'une période de temps , j'ai trouvé comment obtenir toutes les applications en cours d'exécution du gestionnaire de tâches en java , mais je ne sais comment calculer leur consommation d'énergie .
Merci