shouldLogSlowQuery
public static final boolean shouldLogSlowQuery(long elapsedTimeMillis)
Determines whether a query should be logged.
Reads the "db.log.slow_query_threshold" system property, which can be changed
by the user at any time. If the value is zero, then all queries will
be considered slow. If the value does not exist or is negative, then no queries will
be considered slow.
This value can be changed dynamically while the system is running.
For example, "adb shell setprop db.log.slow_query_threshold 200" will
log all queries that take 200ms or longer to run.