MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / timespec

Class timespec

bsgsd.cpp:1951–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949 Sleep(milliseconds);
1950#elif _POSIX_C_SOURCE >= 199309L
1951 struct timespec ts;
1952 ts.tv_sec = milliseconds / 1000;
1953 ts.tv_nsec = (milliseconds % 1000) * 1000000;
1954 nanosleep(&ts, NULL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected