Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- void delay(unsigned int mseconds)
- {
- clock_t goal = mseconds + clock();
- while (goal > clock());
- }
- int main()
- {
- int h,m,s;
- for(h=0; h<24; h++)
- {
- for(m=0; m<60; m++)
- {
- for(s=0; s<60; s++)
- {
- delay( 1000000 );
- system("clear");
- cout<<h<<" : "<< m<<" : "<<s<<endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement