cost 0.1.0

measure the cost of running your functions
Documentation

Cost

Measure the cost of running a function.

This library exposes a function which takes a callback and returns the cost of running that function.

let (cost, num) = cost(|| fibonacci(20));
println!("it cost {} instructions to compute {}", cost, num);