Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on "A sleep(1) is put into all SSL_read() and SSL_write() calls...". Parent comment
Sleep() on windows takes ms.
sleep() on nix takes seconds.
Windows:
VOID WINAPI Sleep( __in DWORD dwMilliseconds );
nix:
#include <unistd.h> unsigned int sleep(unsigned int seconds);
There are no comments on this comment yet.
Sleep() on windows takes ms.
sleep() on nix takes seconds.
Windows:
Sleep(1) is as fast as it can go which turns out to be 15-20ms.nix:
usleep() can be used for more granular delay on nix.