invalid time - why ?
fowlertrainer at anonym.hu
fowlertrainer at anonym.hu
Tue Dec 9 09:14:51 EST 2003
Hello python-list,
starttime=time.time()
.... process ....
endtime=time.time()
dtime=endtime-starttime
print "Started at:", time.strftime("%H:%M:%S",time.localtime(starttime))
print "Ended at:", time.strftime("%H:%M:%S",time.localtime(endtime))
#print time.localtime(dtime)
print "Deltatime: ", time.strftime("%H:%M:%S",time.localtime(dtime))
My problem is in the result:
> Executing: C:\Program Files\ConTEXT\ConExec.exe "C:\Python\python.exe" "C:\dev\PYTPFlood\pytpflood.py"
Parameters are: {'host': 'http://ks/', 'repeat': 1, 'threads': 1, 'port': 80, 'slip': 1000}
Request: 1
Thread count: 0
Started at: 15:12:04
Ended at: 15:12:05
Deltatime: 01:00:01 ????????? <--- why ?
> Execution finished.
What I do wrong ?
The deltatime hour section is wrong. But why ?
Thanx.
--
Best regards,
fowlertrainer mailto:fowlertrainer at anonym.hu
More information about the Python-list
mailing list