Add timing functions in fib example.