Skip to content

Instantly share code, notes, and snippets.

@adurpas
Created December 3, 2012 14:54
Show Gist options
  • Save adurpas/4195466 to your computer and use it in GitHub Desktop.
Save adurpas/4195466 to your computer and use it in GitHub Desktop.
// ISU laboratory session #8, exercise #1.
#include <osapi/Utility.hpp>
#include <unistd.h>
namespace osapi
{
void sleep(unsigned long msecs)
{
usleep(msecs * 1000); //Converts miliseconds to seconds
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment