Hello python-list,
starttime=time. time()
.... process ....
endtime=time.ti me()
dtime=endtime-starttime
print "Started at:", time.strftime(" %H:%M:%S",time. localtime(start time))
print "Ended at:", time.strftime(" %H:%M:%S",time. localtime(endti me))
#print time.localtime( dtime)
print "Deltatime: ", time.strftime(" %H:%M:%S",time. localtime(dtime ))
My problem is in the result:
[color=blue]
> Executing: C:\Program Files\ConTEXT\C onExec.exe "C:\Python\pyth on.exe" "C:\dev\PYTPFlo od\pytpflood.py "[/color]
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 ?[color=blue]
> Execution finished.[/color]
What I do wrong ?
The deltatime hour section is wrong. But why ?
Thanx.
--
Best regards,
fowlertrainer mailto:fowlertr ainer@anonym.hu
starttime=time. time()
.... process ....
endtime=time.ti me()
dtime=endtime-starttime
print "Started at:", time.strftime(" %H:%M:%S",time. localtime(start time))
print "Ended at:", time.strftime(" %H:%M:%S",time. localtime(endti me))
#print time.localtime( dtime)
print "Deltatime: ", time.strftime(" %H:%M:%S",time. localtime(dtime ))
My problem is in the result:
[color=blue]
> Executing: C:\Program Files\ConTEXT\C onExec.exe "C:\Python\pyth on.exe" "C:\dev\PYTPFlo od\pytpflood.py "[/color]
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 ?[color=blue]
> Execution finished.[/color]
What I do wrong ?
The deltatime hour section is wrong. But why ?
Thanx.
--
Best regards,
fowlertrainer mailto:fowlertr ainer@anonym.hu
Comment