336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
개념 :
1. 원형 : double difftime(time_t timer1, time_t timer
소스코드 : main.c
#include <stdio.h>
#include<time.h>
void main(void)
{
time_t s1, s2;
double gop;
int i;
time(&s1);
system("pause");
time(&s2);
printf("runnig time : %g (seconds) \n", difftime(s2, s1));
system("pause");
}
결과 :
'Programing - C > C Basic grammar ' 카테고리의 다른 글
132 날짜 및 시간을 형식화( strftime ) (0) | 2018.05.13 |
---|---|
131 미국식 날짜및 시간( asctime ) (0) | 2018.05.13 |
129 날짜 및 시간을 더하거나 빼기( mktime ) (0) | 2018.05.13 |
128 날짜 및 시간을 문자열로 변환(ctime) (0) | 2018.02.18 |
127 1/1000초 구하기 (_ftime) (0) | 2018.01.10 |