Packages

A a serialization code generator for Gleam

Current section

Files

Jump to
sara src sara_ffi.mjs
Raw

src/sara_ffi.mjs

export function elapsed(fun) {
const start = Number(process.hrtime.bigint());
const result = fun();
const stop = Number(process.hrtime.bigint());
return [result, stop - start];
}
export function exit(n) {
process.exit(n);
}