about summary refs log blame commit diff
path: root/users/tazjin/rlox/examples/slow.lox
blob: dd6fb5e4bf4d8b121ab7e0fe439c2af5157f7ddd (plain) (tree)
1
2
3
4
5
6
7
8
9








                                 
fun fib(n) {
  if (n < 2) return n;
  return fib(n - 1) + fib(n - 2);
}

var before = clock();
print fib(40);
var after = clock();
print after - before;