MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / pingToString

Method pingToString

src/main/java/xmpp/extensions/IqPing.java:96–109  ·  view source on GitHub ↗
(String time)

Source from the content-addressed store, hash-verified

94 }
95
96 private String pingToString(String time) {
97 String timePing=Long.toString((Time.utcTimeMillis()-Long.parseLong(time))/10);
98 int dotpos=timePing.length()-2;
99 String first = (dotpos==0)? "0":timePing.substring(0, dotpos);
100 String second = timePing.substring(dotpos);
101
102 StringBuffer s=new StringBuffer(first)
103 .append('.')
104 .append(second)
105 .append(' ')
106 .append(Time.goodWordForm (Integer.parseInt(second), 0));
107
108 return s.toString();
109 }
110}

Callers 1

blockArrivedMethod · 0.95

Calls 4

utcTimeMillisMethod · 0.95
goodWordFormMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected