while loop doesn't play well with the shitty script im using
This commit is contained in:
parent
9afe3f0e67
commit
685f0b294e
1 changed files with 7 additions and 9 deletions
16
src/main.cpp
16
src/main.cpp
|
@ -3,13 +3,11 @@
|
|||
#include <unistd.h>
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue