(TimeUnit unit)
| 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 | } |
no outgoing calls
no test coverage detected