15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
'use strict';
|
|
|
|
var Curry = require("@rescript/std/lib/js/curry.js");
|
|
|
|
function measure(name, f) {
|
|
var start = new Date().valueOf();
|
|
Curry._1(f, undefined);
|
|
var end = new Date().valueOf();
|
|
var duration = (end - start) / 1000;
|
|
console.log(duration, name);
|
|
}
|
|
|
|
exports.measure = measure;
|
|
/* No side effect */
|