I'm trying to send a End command to the end of this line of code. I've searched everywhere and not able to find a valuable answer..
if args.time:
def stopwatch(seconds):
start = time.time()
time.clock()
elapsed = 0
while elapsed < seconds:
elapsed = time.time() - start
print "Sending for(900) Seconds: %f, seconds count: %02d" % (time.clock() , elapsed)
time.sleep(1)
stopwatch(5)
Wanting to send a Control C of some sort here to stop it without
Exiting the program.