0.0.1 • Published 7 years ago
bodewell-metric v0.0.1
Bodewell Resource Metric
const Metric = require("bodewell-metric");
var metric = new Metric();
assert(metric.valueOf() === undefined);
metric.record(42);
assert(metric.valueOf() === 42);
metric.record(13);
assert(metric.valueOf() === 42);
metric.recorded().forEach(when => {
console.log(sample.when, sample.value);
});
0.0.1
7 years ago