@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
21 lines • 565 B
TypeScript
export declare enum TimerUnit {
NANOSECONDS = 1,
MICROSECONDS = 2,
MILLISECONDS = 3,
SECONDS = 4,
MINUTES = 5,
HOURS = 6,
DAYS = 7
}
export default class TimeUnits {
private timerUnit;
constructor(unit?: TimerUnit);
get unit(): TimerUnit;
set unit(unit: TimerUnit);
getUnitsString(): string;
getCppTimeUnit(): string | undefined;
getMagnitudeFactorFromSeconds(): string | number;
getMagnitudeFactorFromNanoseconds(): number;
toNanos(duration: number): number;
}
//# sourceMappingURL=TimeUnits.d.ts.map