试试这个
long start_time = System.nanoTime();resp = GeoLocationService.getLocationByIp(ipAddress);long end_time = System.nanoTime();double difference = (end_time - start_time) / 1e6;

试试这个
long start_time = System.nanoTime();resp = GeoLocationService.getLocationByIp(ipAddress);long end_time = System.nanoTime();double difference = (end_time - start_time) / 1e6;