while loop doesn't play well with the shitty script im using

This commit is contained in:
fzorb 2025-05-08 20:57:17 +03:00
parent 9afe3f0e67
commit 685f0b294e

View file

@ -3,13 +3,11 @@
#include <unistd.h>
int main(int argc, char* argv[]) {
while (true) {
time_t timestamp = time(NULL);
struct tm datetime = *localtime(&timestamp);
char output[64];
char options[128];
strftime(output, 50, argv[1], &datetime);
std::cout << output << std::endl;
std::sleep(0.1)
}
time_t timestamp = time(NULL);
struct tm datetime = *localtime(&timestamp);
char output[64];
char options[128];
strftime(output, 50, argv[1], &datetime);
std::cout << output << std::endl;
}