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