added calculateDeltaSeconds method for dealing with non-deterministic time behaviour in some cases (e.g. WAITFOR DELAY in case of MSSQL)

This commit is contained in:
Miroslav Stampar
2010-05-13 11:05:35 +00:00
parent 762781e94d
commit ca3e12ae73
6 changed files with 16 additions and 8 deletions

View File

@@ -1107,3 +1107,6 @@ def parseXmlFile(xmlFile, handler):
parse(stream, handler)
stream.close()
xfile.close()
def calculateDeltaSeconds(start, epsilon=0.05):
return int(time.time() - start + epsilon)