Heim  >  Fragen und Antworten  >  Hauptteil

java - InetAddress.getLocalHost() 为什么耗时5s?

InetAddress.getLocalHost() 这个方法我在本地测试,无论怎么测试都是5s,这个函数是哪里会这么耗时呢?我用的jdk是1.7

天蓬老师天蓬老师2742 Tage vor892

Antworte allen(1)Ich werde antworten

  • 迷茫

    迷茫2017-04-18 10:57:33

    多测试几次吧。
    肯定不会是5s

    Antwort
    0
  • StornierenAntwort