From 685f0b294e7633ac5a85524b15f024399223d892 Mon Sep 17 00:00:00 2001 From: fzorb Date: Thu, 8 May 2025 20:57:17 +0300 Subject: [PATCH] while loop doesn't play well with the shitty script im using --- src/main.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5022d40..0165dcb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,13 +3,11 @@ #include int main(int argc, char* argv[]) { - while (true) { - time_t timestamp = time(NULL); - struct tm datetime = *localtime(×tamp); - 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(×tamp); + char output[64]; + char options[128]; + strftime(output, 50, argv[1], &datetime); + std::cout << output << std::endl; + }