R
R
Russian Federation2016-03-27 19:36:00
Python
Russian Federation, 2016-03-27 19:36:00

How to skip an operation in a loop if it runs for more than N seconds?

for i in range(1,100000):
    #операция

Is it possible to skip the operation and continue the program if it runs for more than N seconds?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question