MCPcopy Create free account
hub / github.com/NetHack/NetHack / tty_delay_output

Function tty_delay_output

sys/windows/consoletty.c:1577–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1575volatile int junk; /* prevent optimizer from eliminating loop below */
1576
1577void
1578tty_delay_output(void)
1579{
1580 /* delay 50 ms - uses ANSI C clock() function now */
1581 clock_t goal;
1582 int k;
1583
1584 goal = 50 + clock();
1585 back_buffer_flip();
1586 if (iflags.debug_fuzzer)
1587 return;
1588
1589 while (goal > clock()) {
1590 k = junk; /* Do nothing */
1591 }
1592 nhUse(k);
1593}
1594
1595/*
1596 * CLR_BLACK 0

Callers

nothing calls this directly

Calls 1

back_buffer_flipFunction · 0.85

Tested by

no test coverage detected