typedef struct node { int h; int m; int s; } *PTime;
void sleep(long wait);
void gettime();
int main() { PTime times; int flag = 1; char time[128]; do { _strtime(time); // Gets the current system time (do not include the date) system("cls"); // clear screen printf("OS time: %s/n",time);
gettime(times); // call gettime() sleep(1000); // sleep 1 second