public static String formatNanosToSeconds(long time){
  double sec=time / 1000000000d;
  return nanosFormat.format(sec) + " s";
}

public static String formatNanosToSeconds ( long time ) { double sec = time / 1000000000d ; return nanosFormat . format ( sec ) + " s" ; }
formats nanoseconds to seconds .
