from time import sleep
from threading import Timer
def setTimeout(f):
f()
def test_function():
print 'test'
Timer(2.5,setTimeout,args = [test_function]).start()
for i in range(5):
print i
sleep(1)
ZnJvbSB0aW1lIGltcG9ydCBzbGVlcApmcm9tIHRocmVhZGluZyBpbXBvcnQgVGltZXIKCmRlZiBzZXRUaW1lb3V0KGYpOgogICAgZigpCmRlZiB0ZXN0X2Z1bmN0aW9uKCk6CiAgICBwcmludCAndGVzdCcKClRpbWVyKDIuNSxzZXRUaW1lb3V0LGFyZ3MgPSBbdGVzdF9mdW5jdGlvbl0pLnN0YXJ0KCkKZm9yIGkgaW4gcmFuZ2UoNSk6CiAgICBwcmludCBpCiAgICBzbGVlcCgxKQ==