MCPcopy Create free account
hub / github.com/antlr/codebuff / abbreviate

Method abbreviate

output/java_guava/1.4.17/Stopwatch.java:241–260  ·  view source on GitHub ↗
(TimeUnit unit)

Source from the content-addressed store, hash-verified

239 }
240
241 private static String abbreviate(TimeUnit unit) {
242 switch (unit) {
243 case NANOSECONDS:
244 return "ns";
245 case MICROSECONDS:
246 return "\u03bcs"; // μs
247 case MILLISECONDS:
248 return "ms";
249 case SECONDS:
250 return "s";
251 case MINUTES:
252 return "min";
253 case HOURS:
254 return "h";
255 case DAYS:
256 return "d";
257 default:
258 throw new AssertionError();
259 }
260 }
261}

Callers 3

toStringMethod · 0.95
_toStringMethod · 0.45
_toFileInfoStringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected