Source Code:
(back to article)
import time start = time.time() while time.time() - start < 2: # Do nothing pass print('time spent:', time.time() - start)
Result:
Report an issue