public static boolean shouldLogSlowQuery(long elapsedTimeMillis){
  int slowQueryMillis=Integer.parseInt(System.getProperty("db.log.slow_query_threshold","-1"));
  return slowQueryMillis >= 0 && elapsedTimeMillis >= slowQueryMillis;
}

public static boolean shouldLogSlowQuery ( long elapsedTimeMillis ) { int slowQueryMillis = Integer . parseInt ( System . getProperty ( "db.log.slow_query_threshold" , "-1" ) ) ; return slowQueryMillis >= 0 && elapsedTimeMillis >= slowQueryMillis ; }
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 .
