Skip to content

Instantly share code, notes, and snippets.

@zachlatta
Created October 3, 2012 21:26
Show Gist options
  • Save zachlatta/3829950 to your computer and use it in GitHub Desktop.
Save zachlatta/3829950 to your computer and use it in GitHub Desktop.
Sleep function
#include <time.h>
void sleep(unsigned int mseconds)
{
clock_t goal = mseconds + clock();
while (goal > clock());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment