Handle a signal: Difference between revisions

m
Line 751:
print n
except KeyboardInterrupt, e:
print 'Program has run for %5.3f seconds.' % (time.time() - t1)
break
print 'Program has run for %5.3f seconds.' % (time.time() - t1)
 
counter()</lang>
Anonymous user