cost 0.1.1

measure the cost of running your functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
# 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.

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