timeit(func)
Decorator to measure the execution time of a method.
@ann.timeit def run(net, T): net.simulate(T) return net.m.get() net = ann.Network() data = run(net, 1000)