Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[]) {
- time_t hora;
- time(&hora);
- struct tm*tempo = localtime(&hora);
- printf("Hello \n");
- printf("%d:", tempo->tm_hour);
- printf("%d:", tempo->tm_min);
- printf("%d\n", tempo->tm_sec);
- int i;
- int l=0;
- for(i=0;i<2000000000;l++){
- if(i==l){
- }
- if(l==10){
- i++;
- l=0;
- }
- }
- time_t hora2;
- time(&hora2);
- struct tm*tempo2 = localtime(&hora2);
- printf("%d:", tempo2->tm_hour);
- printf("%d:", tempo2->tm_min);
- printf("%d\n", tempo2->tm_sec);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement