CoCalc
Sharedsupport / 2015-12-08-171850-order.sagewsOpen in CoCalc

Examples for support purposes...

import time
last = time.time()
i = 0
def f():
    global last, i
    i += 1
    n = time.time()
    print i, n - last
    last = n
    time.sleep(.1*random())
f()
1 0.00101518630981
f()
2 0.126775979996
f()
3 0.0645370483398
f()
4 0.0343449115753
f()
5 0.0931720733643
f()
6 0.0511338710785
f()
7 0.0884420871735
f()
8 0.0926198959351
f()
9 0.0641989707947
f()
10 0.0648241043091
f()
11 0.0471088886261