main
Bob Mottram 2020-12-01 17:25:35 +00:00
parent e7eff2a111
commit c4b81eb22d
1 changed files with 2 additions and 8 deletions

View File

@ -1131,20 +1131,14 @@ def individualPostAsHtml(allowDownloads: bool,
# accurate timing of different parts of the code # accurate timing of different parts of the code
enableTimingLog = not allowDownloads enableTimingLog = not allowDownloads
# benchmark 1 logPostTiming(enableTimingLog, postStartTime, '1')
timeDiff = int((time.time() - postStartTime) * 1000)
if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 1 = ' + str(timeDiff))
avatarPosition = '' avatarPosition = ''
messageId = '' messageId = ''
if postJsonObject.get('id'): if postJsonObject.get('id'):
messageId = removeIdEnding(postJsonObject['id']) messageId = removeIdEnding(postJsonObject['id'])
# benchmark 2 logPostTiming(enableTimingLog, postStartTime, '2')
timeDiff = int((time.time() - postStartTime) * 1000)
if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 2 = ' + str(timeDiff))
messageIdStr = '' messageIdStr = ''
if messageId: if messageId: