add 0.1 delay to output
This commit is contained in:
parent
a57fb2fc67
commit
9afe3f0e67
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -9,5 +10,6 @@ int main(int argc, char* argv[]) {
|
||||||
char options[128];
|
char options[128];
|
||||||
strftime(output, 50, argv[1], &datetime);
|
strftime(output, 50, argv[1], &datetime);
|
||||||
std::cout << output << std::endl;
|
std::cout << output << std::endl;
|
||||||
|
std::sleep(0.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue