주어진 밀리 초 후에 타이머를 중지하는 방법
-
21-12-2019 - |
문제
#include <stdio.h>
#include <time.h>
int main (void)
{
double diff = 0.0;
time_t start;
time_t stop;
time(&start);
print("Enter millisecond to stop");
.
타이머 간격으로 주어진 타이머를 중지하기 위해 코드가 무엇인가
해결책
int seconds;
scanf ("%d",&seconds);
stop = 0;
while (stop < start + seconds)
time(&stop);
. 제휴하지 않습니다 StackOverflow