escape ${SECONDS} so the variable is used from the correct script