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

Class timespec

keyhunt.cpp:4374–4374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4372 Sleep(milliseconds);
4373#elif _POSIX_C_SOURCE >= 199309L
4374 struct timespec ts;
4375 ts.tv_sec = milliseconds / 1000;
4376 ts.tv_nsec = (milliseconds % 1000) * 1000000;
4377 nanosleep(&ts, NULL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected