mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
12 lines
225 B
Python
12 lines
225 B
Python
from __future__ import print_function
|
|
|
|
import time
|
|
|
|
def fib(n):
|
|
if n < 2: return n
|
|
return fib(n - 1) + fib(n - 2)
|
|
|
|
start = time.clock()
|
|
for i in range(0, 5):
|
|
print(fib(28))
|
|
print("elapsed: " + str(time.clock() - start)) |