ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.util.TimeUnits");

(.lara)
import lara.util.TimeUnits;

TimeUnits

Constructor

TimeUnits

new TimeUnits(unit)

Parameters

unit: any

Instance Members

getCppTimeUnit

getCppTimeUnit()

getMagnitudeFactorFromNanoseconds

getMagnitudeFactorFromNanoseconds()

getMagnitudeFactorFromSeconds

getMagnitudeFactorFromSeconds()

getUnitsString

getUnitsString()

toNanos

toNanos(duration)

Parameters

duration: any