(.js)
laraImport("lara.code.Energy");
(.lara)
import lara.code.Energy;
Classes:
new Energy(filename)Class that measures the energy spent when executing a section of code.
getPrintUnit()Current SpecsRapl library measures uJ.
getPrintUnit()measure($start, prefix, $end)setPrint(print)setPrintUnit(printUnit)If true, suffixes 'J' to the end of the value.