Source Code:
(back to article)
import time beginning_time = time.time() print('start') time.sleep(2) print('end') print('time spent:', time.time() - beginning_time)
Result:
Report an issue