What do I need to import in order to use the sleep function in unix? I know this is windows.h for windows, but what about unix?
It should be in unistd.h.
Please note that this only gives you the accuracy of integral seconds.
The most portable way for subgrid precision should be (ab-) using select ().
#include <unistd.h>
Man pages http://cis.kutztown.edu/~frye/cgi-bin/unixManPages.cgi?sleep+3C
Source: https://habr.com/ru/post/1340034/More articles:Generate MD5 or SHA1 hash in length (64 bits) - algorithmI need a clickable user interface element instead of Toast (can I create a custom toast with a click option?) - androidHow to open a redirected page from an Iframe to open in the parent ASP.NET window? - c #Python uses 'with' to delete a file after use - pythonPython: should I use eval, exec or ...? - pythonClick the "Just update version duplication problem" button. - .netTortoiseSVN shows the log very slowly on a working copy stored on a network share - svnChange installation path for .NET Service Installer - installerHow to dive deep into javascript - javascriptDate synchronization in jQuery without DateJS - javascriptAll Articles