WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | List of all members
wrench::SimulationTimestampEnergyConsumption Class Reference

A simulation timestamp class for energy consumption. More...

#include <SimulationTimestampTypes.h>

Inheritance diagram for wrench::SimulationTimestampEnergyConsumption:
wrench::SimulationTimestampType

Public Member Functions

double getConsumption ()
 Get the energy consumption in joules. More...
 
std::string getHostname ()
 Get the hostname associated with this timestamp. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampType
 SimulationTimestampType ()
 
More...
 
double getDate ()
 Retrieve the date recorded for this timestamp. More...
 

Additional Inherited Members

- Protected Attributes inherited from wrench::SimulationTimestampType
double date = -0.1
 Date.
 

Detailed Description

A simulation timestamp class for energy consumption.

Member Function Documentation

◆ getConsumption()

double wrench::SimulationTimestampEnergyConsumption::getConsumption ( )

Get the energy consumption in joules.

Returns
energy consumed by this host in joules

◆ getHostname()

std::string wrench::SimulationTimestampEnergyConsumption::getHostname ( )

Get the hostname associated with this timestamp.

Returns
the hostname associated with this timestamp

The documentation for this class was generated from the following files: