Source

Jython Experiments / experiments / fib / fib.py

Full commit
import time

@frameless
def fibonacci(n):
    if n == 1:
        return 0
    elif n == 2:
        return 1
    else:
        return fibonacci(n - 1) + fibonacci(n - 2)

def main():
    start = time.clock()
    fibonacci(32)
    time_taken = time.clock() - start
    print 'time taken:',
    print repr(time_taken)

main()