Skip to content

Instantly share code, notes, and snippets.

@josefsalyer
Created February 20, 2013 02:21
Show Gist options
  • Save josefsalyer/4992184 to your computer and use it in GitHub Desktop.
Save josefsalyer/4992184 to your computer and use it in GitHub Desktop.
time and time again...write an alarm clock!
for (int i = 0; i < 10; i++)
{
time_t now = time(NULL);
printf("The time is %ld\n", now);
sleep(2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment