i simplify my code:
print "hello"
# BeginTime is time in this moment e.g. 9h 45m 23s
# timeplus10s is time 9h 45m 33s
while BeginTime < timeplus10s:
print "i'm doing something"
print "hello after 10 seconds"
as you can see i wanna create construction in while cycle that will last for 10 seconds.
I can't use time.sleep() because I need to do something (which you can'
t see because it's simplified).
How can i do that?