In bug 24696 we added completion times to each step in updatedatabase, it would also be useful to display the elapsed times or time taken per step.
Created attachment 113826 [details] [review] Bug 27059: Add elapsed times to updatedatabase.pl
Created attachment 113896 [details] [review] Bug 27059: Add elapsed times to updatedatabase.pl This patch adds an elapsed time to the timestamp field for each update. Test plan 1/ Apply patch 2/ Run updatedatebase 3/ Note the addition of an elapsed time in the output
Mmm does not work : $ ./src/installer/data/mysql/updatedatabase.pl Use of uninitialized value $start_time in integer subtraction (-) at ./src/installer/data/mysql/updatedatabase.pl line 24474. Upgrade to 20.12.00.045 done [17:22:25 (451071h:22m:25s)]: Bug 21249 - Adding new system preference SearchLimitLibrary Upgrade to 20.12.00.046 done [17:22:25 (00h:00m:00s)]: Bug 14723 - Additional delivery notes to messages Upgrade to 20.12.00.047 done [17:22:25 (00h:00m:00s)]: Bug 23215 - Remove core PayPal support in favor of the use of plugins Upgrade to 20.12.00.048 done [17:22:25 (00h:00m:00s)]: Bug 26995 - [SKIP] Drop column relationship from borrower tables [not executed] Upgrade to 20.12.00.049 done [17:22:25 (00h:00m:00s)]: Bug 28108 - Move action logs 'SERIAL CLAIM' and 'ACQUISITION CLAIM' to a new 'CLAIMS' module Upgrade to 20.12.00.050 done [17:22:25 (00h:00m:00s)]: Bug 28108 - Add new systempreference OpacHiddenItemsHidesRecord