MCPcopy Index your code
hub / github.com/oshi/oshi / sleep

Method sleep

oshi-core/src/main/java/oshi/util/Util.java:47–55  ·  view source on GitHub ↗

Sleeps for the specified number of milliseconds. @param ms How long to sleep

(long ms)

Source from the content-addressed store, hash-verified

45 * How long to sleep
46 */
47 public static void sleep(long ms) {
48 try {
49 LOG.trace("Sleeping for {} ms", ms);
50 Thread.sleep(ms);
51 } catch (InterruptedException e) { // NOSONAR squid:S2142
52 LOG.warn("Interrupted while sleeping for {} ms: {}", ms, e.getMessage());
53 Thread.currentThread().interrupt();
54 }
55 }
56
57 /**
58 * Tests if a String matches another String with a wildcard pattern.

Callers 5

printCpuMethod · 0.95
testTicksMethod · 0.95
testSleepMethod · 0.95
readMethod · 0.95
updateQueryTimestampMethod · 0.95

Calls

no outgoing calls

Tested by 3

printCpuMethod · 0.76
testTicksMethod · 0.76
testSleepMethod · 0.76