Function maybeLogSqliteQueryExecutionTime