dachte mir das folgendermaßen:
print '%.2fs'%((win32api.GetTickCount()-t0)/1000)
allerdings wird aus irgendeinem dummen grund immer komplett abgerundet, dh 1135ms ergäben in der ausgabe 1,00s.
warum??
danke schonmal

Code: Alles auswählen
print '%.2fs'%(round((win32api.GetTickCount()-t0)/1000.0,2))
Code: Alles auswählen
print '%.2fs'%((win32api.GetTickCount()-t0)/1000.0)