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>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
while (true) {
|
time_t timestamp = time(NULL);
|
||||||
time_t timestamp = time(NULL);
|
struct tm datetime = *localtime(×tamp);
|
||||||
struct tm datetime = *localtime(×tamp);
|
char output[64];
|
||||||
char output[64];
|
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