9#ifdef AUTOPAS_ENABLE_ENERGY_MEASUREMENTS
35 bool init(
bool tuningMetricIsEnergy);
85#ifdef AUTOPAS_ENABLE_ENERGY_MEASUREMENTS
89 std::unique_ptr<pmt::PMT> _sensor;
Class representing the different energy sensor options.
Definition: EnergySensorOption.h:19
Measure the energy consumption of a simulation on multiple hardwares.
Definition: EnergySensor.h:20
double getEnergyDeltaT() const
Get seconds between current start and end state.
Definition: EnergySensor.cpp:67
double getJoules() const
Get the energy consumed in Joules between the start and the end state.
Definition: EnergySensor.cpp:51
bool init(bool tuningMetricIsEnergy)
Initializes the EnergySenor.
Definition: EnergySensor.cpp:19
double getWatts() const
Get the average power consumed in Watts between the start and the end state.
Definition: EnergySensor.cpp:59
bool endMeasurement()
Ending measurement.
Definition: EnergySensor.cpp:42
long getNanoJoules() const
Method to convert consumed energy in Joules to nanoJoules.
Definition: EnergySensor.cpp:75
const EnergySensorOption getOption() const
Getter for used sensor option.
Definition: EnergySensor.cpp:40
bool startMeasurement()
Start measurements.
Definition: EnergySensor.cpp:31
In this namespace some helper classes and functions can be found used inside of AutoPas.
Definition: namespaces.h:44