Skip to content

Instantly share code, notes, and snippets.

@miikka
Created October 28, 2012 19:41
Show Gist options
  • Save miikka/3969637 to your computer and use it in GitHub Desktop.
Save miikka/3969637 to your computer and use it in GitHub Desktop.
#include <ctime>
#include <iostream>
int main(int argc, char**argv)
{
std::time_t start = std::time(NULL);
while (std::time(NULL) - start < 10) {
std::cout << "piip!" << std::endl;
sleep(1);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment