Created
October 28, 2012 19:41
-
-
Save miikka/3969637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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