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

Function msleep

sys/share/pctty.c:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56#if defined(TIMED_DELAY) && defined(_MSC_VER)
57void
58msleep(unsigned mseconds)
59{
60 /* now uses clock() which is ANSI C */
61 clock_t goal;
62
63 goal = mseconds + clock();
64 while (goal > clock()) {
65 /* do nothing */
66 }
67}
68#endif
69
70/* fatal error */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected