ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.code.Energy");

(.lara)
import lara.code.Energy;

Energy

Constructor

Energy

new Energy(filename)

Class that measures the energy spent when executing a section of code.

Parameters

filename: any

Instance Members

getPrintUnit

getPrintUnit()

Current SpecsRapl library measures uJ.


getPrintUnit

getPrintUnit()

measure

measure($start, prefix, $end)

Parameters

$start: any
prefix: any
$end: any

setPrint

setPrint(print)

Parameters

print: any

setPrintUnit

setPrintUnit(printUnit)

If true, suffixes 'J' to the end of the value.

Parameters

printUnit: any - boolean