MCPcopy Create free account
hub / github.com/e2wugui/zeze / sleep

Method sleep

ZezeJava/ZezeJavaTest/src/Zezex/TestRoleTimer.java:432–441  ·  view source on GitHub ↗
(long gap, int times)

Source from the content-addressed store, hash-verified

430 }
431
432 private static void sleep(long gap, int times) {
433 try {
434 for (int i = 0; i < times; ++i) {
435 Thread.sleep(gap);
436 System.out.println("-- sleep " + i);
437 }
438 } catch (InterruptedException e) {
439 e.printStackTrace();
440 }
441 }
442
443 private static void log(String msg) {
444 logger.info("======================================== {} ========================================", msg);

Callers 15

testRoleTimer1Method · 0.95
testRoleTimerCron1Method · 0.95
testRoleTimer2Method · 0.95
testRoleTimerCron2Method · 0.95
cleanupMethod · 0.45
prepareNewEnvironmentMethod · 0.45
setUpMethod · 0.45
startMethod · 0.45
areYouFightMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
haltMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected