atomic clock 08-03-2017, 12:08 AM
#1
This is my code, what i spec is to calculate miliseconds, but i just dont know how to start could you give a hand?
i want this appereance when i run my program;
[ 00 : 00 : 00.0000 ]
i hope you understand what i want to do.
any help or manuals would be useful
i want this appereance when i run my program;
[ 00 : 00 : 00.0000 ]
i hope you understand what i want to do.
any help or manuals would be useful
Code:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void counter_Strike() {
for (int hour=0; hour<=24; hour=hour+1) {
for (int minut=0; minut<=60; minut=minut+1) {
for (int second=0; second<=60; second=second+1) {
system("clear");
printf ("[ %d : %d : %d ]\n",hour,minut,second);
sleep(1);
}
}
}
return;
}
int main(void) {
int day;
int thinker[]={1,0,-1};
counter_Strike();
return 0;
}

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)











