add 0.1 delay to output

This commit is contained in:
fzorb 2025-05-08 20:35:33 +03:00
parent a57fb2fc67
commit 9afe3f0e67

View file

@ -1,5 +1,6 @@
#include <iostream>
#include <ctime>
#include <unistd.h>
int main(int argc, char* argv[]) {
while (true) {
@ -9,5 +10,6 @@ int main(int argc, char* argv[]) {
char options[128];
strftime(output, 50, argv[1], &datetime);
std::cout << output << std::endl;
std::sleep(0.1)
}
}