public static void time(Logger logger,String name,Runnable runnable){
  if (BuildConfig.DEBUG) {
    time(logger,name,null);
  }
 else {
    runnable.run();
  }
}

public static void time ( Logger logger , String name , Runnable runnable ) { if ( BuildConfig . DEBUG ) { time ( logger , name , null ) ; } else { runnable . run ( ) ; } }
measures the runtime of the given runnable and log it to the provided logger .
