Oct-07-2022, 08:50 AM
(This post was last modified: Oct-07-2022, 08:51 AM by Pedroski55.)
I have a little programme to get rows from a big Excel file. Depending on the number of rows to fetch, the execution time varies a little, but shouldn't be more than 2 seconds.
Yesterday, the timer was working fine.
This morning I updated all modules according to advice from the internet:
You are supposed to change all the == for >= in requirements.txt then:
Now, the timing is about 6 seconds too much. Even a rough check using the stopwatch on my phone shows less than 3 seconds.
I read just now, "Different platforms handle leap seconds differently."
Anyone else have this problem?
Anyone know how to fix this please?
I tried using the module time and using datetime
Yesterday, the timer was working fine.
This morning I updated all modules according to advice from the internet:
Quote:pip freeze > requirements.txt
You are supposed to change all the == for >= in requirements.txt then:
Quote:pip install -r requirements.txt --upgrade
Now, the timing is about 6 seconds too much. Even a rough check using the stopwatch on my phone shows less than 3 seconds.
I read just now, "Different platforms handle leap seconds differently."
Anyone else have this problem?
Anyone know how to fix this please?
I tried using the module time and using datetime
# start a timer to see how long this takes start = datetime.datetime.now() print('start time is', start) savename = makeXL(sF, mytup, sheet, path2files) paintYellow(savename) formatCells(savename) end = datetime.datetime.now() print('end time is', end) execution_time = end - start print('\n*********************************************************\n') print(f'Making the new Excel file took: {execution_time} seconds') print('\n*********************************************************\n') print(f'data taken from {myfile} and saved in {savename} !') print('All done!')