F
fowlertrainer
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:
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 ?
What I do wrong ?
The deltatime hour section is wrong. But why ?
Thanx.
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.